Comment 1 for bug 268040

Revision history for this message
Dirk Dokter (dirkdokter) wrote :

This is fixed in the development release. Functions like "is_logged_in()" and session variables like "$_SESSION['rank']" are replaced by functions in custom_functions.php. That way, users (sysops) can edit custom_functions.php to match their current environment.

Current custom_functions:
HasPermission($type)
Returns boolean.
$type can be e.g. 'admin' or 'manage_departments'

OnNoPermission()
Returns true
Executed when user has no permission to do something. Can e.g. contain a redirect to a login page.

GetUserDisplayName($userid)
Returns 'SYSTEM' if userid==0. Has to be modified return the full name (or initials).

GetUserID()
Returns the userid of the current logged in user.