/**
  * Register a new permission
  *
  * @param string $module the id of the module
  * @param string $permissionId the id of the permission
  * @param string $description the non-localized description of the permission
  * @param int $flags (optional) flags (of the GALLERY_PERMISSION_XYZ variety)
  * @param array $composites (optional) ids of other permissions that compose this one
  * @return GalleryStatus a status code
  */
 function registerPermission($module, $permissionId, $description, $flags = 0, $composites = array())
 {
     MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryPermissionHelper_advanced.class');
     return GalleryPermissionHelper_advanced::registerPermission($module, $permissionId, $description, $flags, $composites);
 }