1 <?php # vim:ts=2:sw=2:et:
2 /* For licensing and copyright terms, see the file named LICENSE */
4 if (function_exists('date_default_timezone_set')) {
5 date_default_timezone_set('UTC');
8 include dirname(__FILE__) . '/../inc/common.php';
10 /* user object right... */
13 $user = array_shift($argv);
14 MTrackAuth::su($user);
15 $objectid = array_shift($argv);
17 /* A bit ugly to have this special case */
18 if ($objectid == '--repo') {
19 $reponame = array_shift($argv);
20 $obj = MTrackRepo::loadByName($reponame);
21 $objectid = "repo:$obj->repoid";
24 $res = MTrackACL::hasAnyRights($objectid, $argv);