* change for 9.6.2 version.

This commit is contained in:
wangyidong
2017-11-17 11:54:19 +08:00
parent 6a87a80a4d
commit 3da2a97b48
13 changed files with 119 additions and 26 deletions
+20
View File
@@ -407,4 +407,24 @@ class groupModel extends model
}
return $modules;
}
/**
* Judge an action is clickable or not.
*
* @param object $group
* @param string $action
* @static
* @access public
* @return bool
*/
public static function isClickable($group, $action)
{
$action = strtolower($action);
if($action == 'manageview' and $group->role == 'limited') return false;
if($action == 'edit' and $group->role == 'limited') return false;
if($action == 'copy' and $group->role == 'limited') return false;
return true;
}
}