projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e234040
)
DataObjects/Images.php
author
edward
<edward@roojs.com>
Thu, 14 Apr 2016 04:34:46 +0000
(12:34 +0800)
committer
edward
<edward@roojs.com>
Thu, 14 Apr 2016 04:34:46 +0000
(12:34 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
da9fd9e
..
a3d7f1a
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-30,7
+30,7
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
- function checkPerm($
perm
, $au)
+ function checkPerm($
lvl
, $au)
{
// default permissons are to
// allow create / edit / if the user has
{
// default permissons are to
// allow create / edit / if the user has
@@
-43,7
+43,7
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
//print_r($o);
if (method_exists($o, 'hasPerm')) {
// edit permissions on related object needed...
//print_r($o);
if (method_exists($o, 'hasPerm')) {
// edit permissions on related object needed...
- return $o->hasPerm( $
perm
== 'S' ? 'S' : 'E' , $au);
+ return $o->hasPerm( $
lvl
== 'S' ? 'S' : 'E' , $au);
}
}