PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
sak
Worker
Worker


Joined: Jul 06, 2005
Posts: 167

PostPosted: Sat Sep 19, 2009 3:56 pm Reply with quote Back to top

I just noticed that custom fields set as private in RNYA are visible to all users. Is this intended? I just upgrade to 2.4 and they are still visible.

If this is intended, that's cool. I need to like IMMEDIATELY fix this though. I have to protect my users' information right away. Can someone tell me how to do this?
View user's profile Send private message Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2404
Location: Pennsylvania

PostPosted: Sat Sep 19, 2009 4:50 pm Reply with quote Back to top

I just made a custom field called color and I only see it as a user(me) or admin. I do not see it as anonymous. Are you sure it is not just you that is seeing becuase you are still logged into admin? Sorry have to ask.
View user's profile Send private message Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2404
Location: Pennsylvania

PostPosted: Sat Sep 19, 2009 4:53 pm Reply with quote Back to top

I see the problem now. I thought this problem was taken care of already Mad

Give me a few minutes.
View user's profile Send private message Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2404
Location: Pennsylvania

PostPosted: Sat Sep 19, 2009 5:14 pm Reply with quote Back to top

Ok I thought I saw the problem, but I can't reproduce it. I know that this was a problem in 2.3, but are you sure they are showing in 2.4?

Per above are you logged into admin?
View user's profile Send private message Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2404
Location: Pennsylvania

PostPosted: Sat Sep 19, 2009 5:44 pm Reply with quote Back to top

OK, Sorry! I finally got it. I don't want to mention publicly why it was so difficult to find, but here is the solution.

Find line 105 of /modules/Your_Account/public/userinfo.php
Code:

if (is_admin($admin) OR (is_user($user) AND $usrinfo['username'] == $username)) {

Change to:
Code:

if (is_admin($admin) OR (is_user($user) AND $usrinfo['username'] == $userinfo['username'])) {
View user's profile Send private message Visit poster's website
sak
Worker
Worker


Joined: Jul 06, 2005
Posts: 167

PostPosted: Sat Sep 19, 2009 5:45 pm Reply with quote Back to top

I'm just logged-in as a regular user right now. Using a different browser to make sure that cookies/etc aren't coming into play. I even tried accessing admin.php to make sure I wasn't somehow accessing admin features since it's from the same IP. admin.php brings up the login, so I must not have any access to admin.

Looks like a standard user can still see my custom "private" fields. By standard user I mean logged-in as a registered user. Anonymous can NOT see the private fields but a user can at this point.

For the upgrade, I just upgraded my files and ran the db updater - no issues came up with the upgrade - very smooth and easy Smile

edit: posted while you were posting. I will try the above fix right now.
View user's profile Send private message Visit poster's website
sak
Worker
Worker


Joined: Jul 06, 2005
Posts: 167

PostPosted: Sat Sep 19, 2009 5:49 pm Reply with quote Back to top

Worked like a charm - thank you so much!
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum