API docs     >     Users and Permissions     >     Permissions

Permissions->getPermissions

Description

getPermissions ( $objectId = 0 )
Gets Permissions for the current Object

Parameters

$objectId
int
(optional) Object Id

Returns

array
Array of Permissions
  1. Array(
  2.     [0] => Array(
  3.         [ID] => 2
  4.         [OID] => 2
  5.         [USERGROUPID] => 1
  6.         [RREAD] => 1
  7.         [RWRITE] => 1
  8.         [RDELETE] => 1
  9.         [RSUB] => 1
  10.         [RSTAGE] => 1
  11.         [RMODERATE] => 1
  12.         [RCOMMENT] => 1
  13.         [RSEND] => 0
  14.     )
  15.     ...
  16. )