Class Permission
- Model
-
AppModel
-
BEAppModel
-
Permission
Modifiedby: $LastChangedBy$
Lastmodified:
$LastChangedDate$
$Id$
Located at models/account/permission.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
replaceGroupPerms( integer $groupId, array $perms )
remove old permissions on $groupId and add new $perms |
public
boolean,
|
#
isWritable( integer $objectId, array & $userData, $perms = array() )
Is object ($objectId) writable by user? |
public
boolean,
|
#
isForbidden( integer $objectId, array & $userData )
Is object ($objectId) forbidden to user? Backend only (check backend_private permission) |
public
boolean,
|
#
isAccessibleByFrontend( $objectId, array & $userData, $perms = array() )
Is object ($objectId) accessible by user in frontend? |
public
string
|
#
frontendAccess( integer $objectId, array & $userData = array() )
Return frontend level access to an object |
public
boolean
|
#
checkPermissionByUser( $perms, array & $userData )
check if user or user groups are in $perms array |
public
array
|
#
isPermissionSet( integer $objectId, array|integer $flag )
check if a permission over an object is set |
public
|
|
public
array
|
|
private
|
|
public
array
|
#
countPermissions( array $objects, array $options )
passed an array of BEdita objects add 'count_permission' key with the number of permissions applied to objects |
public
array
|
#
relatedObjectsNotAccessibile( integer $objectId, array $options = array(), array $user = array() )
Return information about frontend not accessible related objects to $objectId |
public
boolean
|
#
isObjectsAndParentsAccessible( integer $objectId, array $options = array(), array $user = array() )
Return true if object $objectId and its parents are accessible i.e. for $user 'Accessible' means without 'frontend_access_with_block' permission set |
public
boolean
|
#
objectParentsAccessible( integer $objectId, array $options = array(), array $userGroups = array() )
Return true if object $objectId parents are accessible for a user 'Accessible' means without 'frontend_access_with_block' permission set |
Methods inherited from BEAppModel
am(),
buildQueryStatement(),
checkDate(),
checkDuration(),
checkFloat(),
checkNumber(),
containLevel(),
fieldsString(),
findObjects(),
findObjectsAfterFilter(),
findObjectsClauses(),
findObjectsCount(),
getBindingsLevel(),
getDefaultDateFormat(),
getDriver(),
getEndQuote(),
getLimitClausole(),
getStartQuote(),
setBindingsLevel(),
setupDbParams(),
toolbar()
Methods inherited from AppModel
Properties summary
public
array
|
$belongsTo
|
#
array(
'User' =>
array(
'className' => 'User',
'conditions' => "Permission.switch = 'user' ",
'foreignKey' => 'ugid'
),
'Group' =>
array(
'className' => 'Group',
'conditions' => "Permission.switch = 'group' ",
'foreignKey' => 'ugid'
),
)
|
protected
|
$BeObjectCache
Object cache |
#
null
|