Horde_Perms_Permission::addCreatorPermission PHP Method

addCreatorPermission() public method

Grants creators additional permissions to this object.
public addCreatorPermission ( integer $permission, boolean $update = true )
$permission integer The permission (DELETE, etc.) to add.
$update boolean Whether to automatically update the backend.
    public function addCreatorPermission($permission, $update = true)
    {
        if ($this->get('type') == 'matrix' && isset($this->data['creator'])) {
            $this->data['creator'] |= $permission;
        } else {
            $this->data['creator'] = $permission;
        }
        if ($update) {
            $this->save();
        }
    }