mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Remove site grant option
This commit is contained in:
parent
4b6737800f
commit
e6e5044f1f
6 changed files with 3 additions and 41 deletions
|
|
@ -2125,23 +2125,10 @@ class moduleModel extends module
|
|||
// Log-in member only
|
||||
if($member_info->member_srl)
|
||||
{
|
||||
if($val->group_srl == -1)
|
||||
if($val->group_srl == -1 || $val->group_srl == -2)
|
||||
{
|
||||
$grant->{$val->name} = true;
|
||||
}
|
||||
// Site-joined member only
|
||||
else if($val->group_srl == -2)
|
||||
{
|
||||
// Grant if no information of the currently connected site exists
|
||||
if(!Context::get('site_module_info')->site_srl)
|
||||
{
|
||||
$grant->{$val->name} = true;
|
||||
}
|
||||
else if(count($member_group))
|
||||
{
|
||||
$grant->{$val->name} = true;
|
||||
}
|
||||
}
|
||||
// Manager only
|
||||
else if($val->group_srl == -3)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue