'권리자만' 모듈 권한 타입 체크 코드 추가

319736deb6
This commit is contained in:
conory 2017-08-11 16:50:03 +09:00
parent 7d222acdfa
commit ffdb924b7a

View file

@ -2082,6 +2082,14 @@ class moduleModel extends module
$grant->{$val->name} = true; $grant->{$val->name} = true;
} }
} }
// Manager only
else if($val->group_srl == -3)
{
if($grant->manager)
{
$grant->{$val->name} = true;
}
}
// If a target is a group // If a target is a group
else if(count($member_group) && in_array($val->group_srl, $member_group)) else if(count($member_group) && in_array($val->group_srl, $member_group))
{ {