mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
check_type, check_var 속성 분리
This commit is contained in:
parent
83d6fe89a3
commit
322352cb09
1 changed files with 2 additions and 7 deletions
|
|
@ -845,15 +845,10 @@ class moduleModel extends module
|
|||
{
|
||||
$action = $permission->attrs->action;
|
||||
$target = $permission->attrs->target;
|
||||
$check = $permission->attrs->check ?: 'module_srl';
|
||||
|
||||
$info->permission->{$action} = $target;
|
||||
$info->permission_check->{$action}->key = $check;
|
||||
|
||||
if(strpos($check, '.') !== false)
|
||||
{
|
||||
list($info->permission_check->{$action}->type, $info->permission_check->{$action}->key) = explode('.', $check);
|
||||
}
|
||||
$info->permission_check->{$action}->key = $permission->attrs->check_var ?: 'module_srl';
|
||||
$info->permission_check->{$action}->type = $permission->attrs->check_type ?: '';
|
||||
|
||||
$buff[] = sprintf('$info->permission->%s = \'%s\';', $action, $target);
|
||||
$buff[] = sprintf('$info->permission_check->%s->key = \'%s\';', $action, $info->permission_check->{$action}->key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue