/** * Add the given itemid, userid, permission mapping * * @param int $itemId the id of the GalleryItem * @param int $userId the id of the GalleryUser * @param string $permission the permission id * @param boolean $applyToChildren (optional) whether or not this call applies to child items * @return GalleryStatus a status code */ function addUserPermission($itemId, $userId, $permission, $applyToChildren = false) { MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryPermissionHelper_advanced.class'); return GalleryPermissionHelper_advanced::addUserPermission($itemId, $userId, $permission, $applyToChildren); }