projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
172049a
)
RooTrait.php
author
edward
<edward@roojs.com>
Wed, 30 Mar 2016 10:57:35 +0000
(18:57 +0800)
committer
edward
<edward@roojs.com>
Wed, 30 Mar 2016 10:57:35 +0000
(18:57 +0800)
RooTrait.php
patch
|
blob
|
history
diff --git
a/RooTrait.php
b/RooTrait.php
index
23973a6
..
e84ab79
100644
(file)
--- a/
RooTrait.php
+++ b/
RooTrait.php
@@
-164,8
+164,17
@@
trait Pman_Core_RooTrait {
return false;
}
+ function hasPerm($name, $lvl) // do we have a permission
+ {
+ static $pcache = array();
+ $au = $this->getAuthUser();
+ return $au && $au->hasPerm($name, $lvl);
+
+ }
+
function getAuthUser()
{
die('Get auth user is not implement.');
}
+
}