User Level Checks

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2006, 03:58 PM
New Pligger
 
Join Date: Jan 2006
Posts: 17
I downloaded yesterday's working version of Beta6.

When a visitor jumps into a section of the system -- for instance the shakeit page -- are the global user settings set?

In the early Beta5 releases not all user settings were set when someone was not logged in. This resulting in tons of warning messages in my Apache logs. I finally tracked it down and realized that I needed to test to see if there as a value set for $current_user->user_level

In Beta6 this is checked by the checklevel function in utils.php

Should that value be checked to see make sure it is set?
For instance:

Code:
function checklevel($levl)
{
	global $current_user;
                if( !empty( $current_user->user_level  ) &&
                             $current_user->user_level == $levl)
	{
		return 1;
	}
}
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit Antispam Addon v 0.1 AnAlienHolakres3 Free Modules 45 12-05-2011 12:48 AM
god account now cannot change User Level Rayden Questions and Comments 16 10-29-2007 01:40 PM
access right of admin level user OnlyBlue Questions and Comments 4 08-12-2007 09:53 PM
[SOLVED] rights/access according to user level? stevux Questions and Comments 4 07-26-2007 07:19 AM
Need help resetting user level and email WatchDog Questions and Comments 4 08-22-2006 02:22 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development