File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public function beforeSave($insert)
102102 return true ;
103103 }
104104
105- if (!$ this ->grandPermission ('access_update ' )) {
105+ if (!$ this ->hasPermission ('access_update ' )) {
106106 $ this ->addAccessError ('update ' );
107107 } else {
108108 return true ;
@@ -116,7 +116,7 @@ public function beforeDelete()
116116 {
117117 parent ::beforeDelete ();
118118
119- if (!$ this ->grandPermission ('access_delete ' )) {
119+ if (!$ this ->hasPermission ('access_delete ' )) {
120120 $ this ->addAccessError ('delete ' );
121121 } else {
122122 return true ;
@@ -259,7 +259,7 @@ public function authItemStringToArray($itemString)
259259 *
260260 * @return bool
261261 */
262- private function grandPermission ($ action = null )
262+ private function hasPermission ($ action = null )
263263 {
264264 if ($ action === null && !in_array ($ action , self ::$ _availableAccessColumns )) {
265265 return false ;
You can’t perform that action at this time.
0 commit comments