grants
- Ariadne >
- Library >
- Ariadne 2.4 >
- Manuals >
- Programmers Reference >
- Classes >
- Object >
- Data >
(array) $data->grants
Grants for this object
$data->grants is a multidimensional or multilevel array with the following elements:
$data->grants[$type][$id][$grant]=$value
$type is the type of the user object on which the grant is set, can be either 'user' or 'group'.
$id is the login of the user object
$grant is the name of the grant
$value is a bitmap with the following flags:
| Flag | Value | Description |
|---|---|---|
| >= | 1 | Grant set for current object and children (deprecated) |
| = | 2 | Grant set for the current object |
| > | 4 | Grant set for children |

