Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 25 of 64) sorted by relevance

123

/plugin/projects/action/
H A Daction.php60 $perm = auth_quickaclcheck($ID);
63 if ($perm < AUTH_READ) {
107 if ($perm >= AUTH_DELETE)
145 if ($perm <= AUTH_READ) return;
195 if ($perm < AUTH_ADMIN) return;
217 $perm = auth_quickaclcheck($ID);
226 if ($perm <= AUTH_READ) {
257 if ($perm <= AUTH_READ) {
295 if ($perm <= AUTH_READ) {
342 if ($perm < AUTH_EDIT) {
[all …]
/plugin/userhomepage/
H A Daction.php252 $perm = AUTH_DELETE;
253 … (!in_array("$where\t$who\t$perm\n", $existingLines)) { $newLines[] = array('where' => $where, 'wh…
259 … (!in_array("$where\t$who\t$perm\n", $existingLines)) { $newLines[] = array('where' => $where, 'wh…
266 … (!in_array("$where\t$who\t$perm\n", $existingLines)) { $newLines[] = array('where' => $where, 'wh…
274 $perm = AUTH_DELETE;
277 $perm = AUTH_EDIT;
280 … (!in_array("$where\t$who\t$perm\n", $existingLines)) { $newLines[] = array('where' => $where, 'wh…
333 … (!in_array("$where\t$who\t$perm\n", $existingLines)) { $newLines[] = array('where' => $where, 'wh…
337 … (!in_array("$where\t$who\t$perm\n", $existingLines)) { $newLines[] = array('where' => $where, 'wh…
344 … (!in_array("$where\t$who\t$perm\n", $existingLines)) { $newLines[] = array('where' => $where, 'wh…
[all …]
/plugin/sneakyindexfix/_test/
H A Dmain.test.php50 $perm = auth_quickaclcheck('private:*');
52 $this->assertEquals(AUTH_NONE, $perm);
62 $perm = auth_quickaclcheck('private:*');
64 $this->assertEquals(AUTH_READ, $perm);
74 $perm = auth_quickaclcheck('private:*');
76 $this->assertEquals(AUTH_READ, $perm);
/plugin/aclplusregex/
H A Daction.php107 list(, $perm) = explode('x', $key); // the part after the x is our permission
108 return (int)$perm;
128 foreach ($config as list($id, $pattern, $perm)) {
129 $perm = (int)$perm;
133 $rules[$pattern] = max($rules[$pattern] ?: AUTH_NONE, $perm);
153 foreach ($rules as $rule => $perm) {
154 $reGroup[] = $this->patternToRegexGroup($rule, $perm);
214 * @param int $perm
217 protected function patternToRegexGroup($idpattern, $perm) argument
228 $name = 'g' . ($this->counter++) . 'x' . $perm;
/plugin/combo/ComboStrap/
H A DIdentity.php101 $perm = auth_quickaclcheck($pageId);
103 $perm = auth_aclcheck($pageId, '', null);
106 if ($perm >= AUTH_EDIT) {
215 $perm = self::getPerm($pageId);
217 if ($perm >= AUTH_READ) {
231 $perm = auth_quickaclcheck($pageId);
233 $perm = auth_aclcheck($pageId, '', null);
235 return $perm;
/plugin/displaywikipage/
H A Dcode.php22 $perm = auth_quickaclcheck(trim(strtolower($wikipagename), ":"));
24 if (@file_exists(wikiFN($wikipagename)) && $perm >= AUTH_READ) {
25 if ($perm >= AUTH_READ) {
28 if ($perm >= AUTH_EDIT) {
36 if ($perm >= AUTH_CREATE) {
/plugin/elasticsearch/helper/
H A Dacl.php90 foreach ($rules as $key => $perm) {
92 $type = $perm ? 'groups_include' : 'groups_exclude';
94 $type = $perm ? 'users_include' : 'users_exclude';
113 foreach ($rule as $key => $perm) {
117 $localrules[$key] = $perm > AUTH_NONE;
118 } elseif ($key === '@ALL' && $perm > AUTH_NONE) {
/plugin/superacl/
H A Dadmin.php131 foreach($opt as $who => $perm){
133 $lines[] = "$where\t$who\t$perm\n";
372 $perm = auth_aclcheck($check,$user,$groups);
376 if($perm){
382 if($perm >= AUTH_EDIT) $names[] = $this->getLang('acl_perm2');
407 if($perm == AUTH_ADMIN){
557 foreach($set as $who => $perm){
703 if($ispage && $setperm > AUTH_EDIT) $perm = AUTH_EDIT;
712 'value' => $perm );
715 if($ispage && $perm > AUTH_EDIT){
[all …]
/plugin/bez/mdl/
H A DAcl.php23 public function grant($columns, $perm) { argument
31 if ($this->acl[$column] < $perm) {
32 $this->acl[$column] = $perm;
55 public function add_column($column, $perm=BEZ_PERMISSION_NONE) { argument
60 $this->acl[$column] = $perm;
/plugin/news/syntax/
H A Dbutton.php57 if(isset($INFO['perm']) && $INFO['perm'] < 2) return;
93 if(isset($INFO['perm']) && $INFO['perm'] < 2) return;
/plugin/aclauditor/
H A Dadmin.php214 …getLang('who').'</th><th>'.$this->getLang('what').'</th><th>'.$this->getLang('perm').'</th></tr>');
217 …ptln(' <tr><td>'.$dfn['who'].'</td><td>'.$dfn['what'].'</td><td>'.$this->getLang('perm'.$dfn['lvl'…
219 …rm">'.$this->getLang('resource_final_perm').' :</td><td>'.$this->getLang('perm'.$list['_lvl']).'</…
228 …getLang('who').'</th><th>'.$this->getLang('what').'</th><th>'.$this->getLang('perm').'</th></tr>');
231 …ptln(' <tr><td>'.$dfn['who'].'</td><td>'.$dfn['what'].'</td><td>'.$this->getLang('perm'.$dfn['lvl'…
233 …rm">'.$this->getLang('resource_final_perm').' :</td><td>'.$this->getLang('perm'.$list['_lvl']).'</…
245 …getLang('who').'</th><th>'.$this->getLang('what').'</th><th>'.$this->getLang('perm').'</th></tr>');
254 …ptln(' <tr><td>'.$dfn['who'].'</td><td>'.$dfn['what'].'</td><td>'.$this->getLang('perm'.$dfn['lvl…
266 …cific">('.$this->getLang('specific').')</span> ' : '').': '.$this->getLang('perm'.$perm).'</div>');
316 $lvlstr = $this->getLang('perm'.$r['reqlvl']);
[all …]
/plugin/ckgdoku/fckeditor/editor/filemanager/connectors/php/
H A Dcheck_acl.php75 $perm = -1;
99 if($acl[2] > $perm) {
100 $perm = $acl[2];
103 if($perm > -1) {
105 return (int) $perm;
129 if($acl[2] > $perm) {
130 $perm = $acl[2];
134 if($perm != -1) {
135 return (int) $perm;
/plugin/ckgedit/fckeditor/editor/filemanager/connectors/php/
H A Dcheck_acl.php75 $perm = -1;
99 if($acl[2] > $perm) {
100 $perm = $acl[2];
103 if($perm > -1) {
105 return (int) $perm;
129 if($acl[2] > $perm) {
130 $perm = $acl[2];
134 if($perm != -1) {
135 return (int) $perm;
/plugin/fckg/fckeditor/editor/filemanager/connectors/php/
H A Dcheck_acl.php68 $perm = -1;
88 if($acl[2] > $perm){
89 $perm = $acl[2];
92 if($perm > -1){
94 return $perm;
113 if($acl[2] > $perm){
114 $perm = $acl[2];
119 return $perm;
/plugin/autlogin/
H A Dadmin.php173 $perm = $_REQUEST[$alias.$page];
203 $perm = $_REQUEST['manualmanual'];
214 $perm = AUTH_EDIT;
321 $perm = $_REQUEST['manualmanual'];
326 $perm = AUTH_EDIT;
800 'value' => $perm );
936 $this->save($stranka,$visit,$perm);
946 function save($stranka,$visit,$perm) argument
1114 $perm = $acll[2];
1117 if($perm > -1){
[all …]
/plugin/singlesearchresult/
H A Daction.php33 $perm = auth_quickaclcheck($pageid);
35 $perm = auth_aclcheck($pageid, '', null);
38 if($perm > AUTH_NONE) {
/plugin/blog/
H A Dhelper.php68 $perm = auth_quickaclcheck($id);
69 if ($perm < AUTH_READ) continue; // check ACL
74 if ($draft && ($perm < AUTH_CREATE)) continue;
110 'perm' => $perm,
/plugin/tagfilter/
H A Dhelper.php112 $perm = auth_quickaclcheck($page);
113 if (!$perm < AUTH_READ){
142 $perm = auth_quickaclcheck($page);
143 if (!$perm < AUTH_READ) {
158 $perm = auth_quickaclcheck($pageid);
159 if (!($perm < AUTH_READ)) {
172 $perm = auth_quickaclcheck($page);
173 if (!$perm < AUTH_READ)
419 $perm = auth_quickaclcheck($page_lookup);
420 if (!($perm < AUTH_READ))
/plugin/userannotations/
H A Daction.php85 $perm = auth_quickaclcheck($annotation_id);
87 if(file_exists(wikiFN($annotation_id, '', false)) && $perm >= AUTH_READ)
91 if($perm >= AUTH_EDIT)
/plugin/noticeboard/
H A Daction.php99 if($INFO['perm'] < 2){
195 if($_POST['noticeboard_delete'] && $INFO['perm'] >= 2){
204 if(($act=='save' && $_REQUEST['noticeboard_category']) && $INFO['perm'] > 1){
/plugin/noticeboard/noticeboard/
H A Daction.php99 if($INFO['perm'] < 2){
195 if($_POST['noticeboard_delete'] && $INFO['perm'] >= 2){
204 if(($act=='save' && $_REQUEST['noticeboard_category']) && $INFO['perm'] > 1){
/plugin/preregister/
H A Dadmin.php110 $perm = substr(sprintf('%o', fileperms($this->metaFn )), -4);
111 if(preg_match('/\d\d(\d)/',$perm,$matches)) {
113 msg("Data file is currently accessible to all: $perm");
/plugin/denyactions/action/
H A Drev.php24 $perm = auth_quickaclcheck($ID);
25 if($perm < AUTH_EDIT){
/plugin/aclplusregex/_test/
H A DTestAction.php33 public function patternToRegexGroup($idpattern, $perm) argument
35 return parent::patternToRegexGroup($idpattern, $perm);
/plugin/menupopup/
H A Dsyntax.php222 function incl_editButton($id, $file, $perm){ argument
226 …if (($perm >= AUTH_EDIT) && (is_writable($file))) $ret = '<div class="secedit">'.html_btn('edit', …
227 } elseif ($perm >= AUTH_CREATE){

123