* Validates parameters for ACL options.
*/
public function validateLoadAll() {
- $this->readInteger('objectID', true);
+ $this->readInteger('objectID', false);
$this->readInteger('objectTypeID');
$this->readString('categoryName', true);
}
* @return array
*/
public function loadAll() {
- $objectIDs = (isset($this->parameters['objectID'])) ? array($this->parameters['objectID']) : array();
+ $objectIDs = ($this->parameters['objectID']) ? array($this->parameters['objectID']) : array();
$permissions = ACLHandler::getInstance()->getPermissions($this->parameters['objectTypeID'], $objectIDs, $this->parameters['categoryName'], true);
return $permissions;