Exemplo n.º 1
0
 /**
  * Shortcut function for checking download access
  * @param  int     $object_id
  * @param  int     $user_group_id
  * @return boolean
  */
 public static function canDownload($object_id, $user_group_id = false)
 {
     return Security::isAdmin() || Security::getAccessBitForObject($object_id, static::$CAN_DOWNLOAD, $user_group_id) > 0;
 }