mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 10:52:14 +09:00
Implement admin scopes
This commit is contained in:
parent
ec6ac82ebd
commit
b17c58f17f
11 changed files with 163 additions and 12 deletions
|
|
@ -148,6 +148,12 @@ class Module extends ModuleObject
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// check scope column on module_admins table
|
||||
if (!$oDB->isColumnExists('module_admins', 'scopes'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -311,6 +317,12 @@ class Module extends ModuleObject
|
|||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
// check scope column on module_admins table
|
||||
if (!$oDB->isColumnExists('module_admins', 'scopes'))
|
||||
{
|
||||
$oDB->addColumn('module_admins', 'scopes', 'text', null, null, false, 'member_srl');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue