Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
New hook sec.access_ws
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 7, 2015
1 parent f870fa7 commit fd031be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/core/classes/class.ConfService.php
Expand Up @@ -485,6 +485,12 @@ public static function repositoryIsAccessible($repositoryId, $repositoryObject,
return false;
}
}
$res = null;
$args = array($repositoryId, $repositoryObject, $userObject, &$res);
AJXP_Controller::applyIncludeHook("sec.access_ws", $args);
if($res === false){
return false;
}
return true;
}

Expand Down Expand Up @@ -671,6 +677,7 @@ protected function initRepositoriesListInst($scope = "user", $includeShared = tr
$objList[$key] = $value;
}
}
AJXP_Controller::applyHook("sec.filter_ws_access", array(&$objList));
return $objList;
}
/**
Expand Down

0 comments on commit fd031be

Please sign in to comment.