rights.php

Functions

MustLogIn()

MustLogIn()

MustBeAdmin()

MustBeAdmin()

print an error and die if the user is not logged in or is not an admin

IsAdmin()

IsAdmin()

MustLogIn force the user to log and then call the link passed in parameter

IsVol()

IsVol() : boolean

IsVol return true wether the members is a volunteer or not (it mean : if the members has any special right)

Returns

boolean

IsLoggedIn()

IsLoggedIn( $ExtraAllowedStatus) : boolean

check if the user is a logged in member @$ExtraAllowedStatus allows for a list, comma separated of extra status which can be allowed for members in addition to the basic Active and ActiveHidden members.Status this means that in the default case : (IsLoggedIn()) will return true only if the member has a session with an IdMember and a Status like Active or ActiveHidden in the extended cases (IsLoggedIn("Pending")) will also return true if the member has a a status set to Pending, this allow to give specific access to other members than the one with Active or ActiveHiddend Status

Parameters

$ExtraAllowedStatus

Returns

boolean

HasRight()

HasRight( $RightName,  $_Scope,  $OptionalIdMember)

Parameters

$RightName
$_Scope
$OptionalIdMember

RightScope()

RightScope( $RightName,  $Scope)

Parameters

$RightName
$Scope

CanTranslate()

CanTranslate( $IdMember)

Parameters

$IdMember