Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -147,6 +147,8 @@ EOF;
|
||||
protected static \$containerIds = NULL;
|
||||
public static \$modPerm = 'cms{$databaseId}';
|
||||
public static \$permType = 'categories_{$databaseId}';
|
||||
public static \$contentArea = '{$dbObject->_title}';
|
||||
public static \$containerType = '{$dbObject->key}_category';
|
||||
|
||||
public static function fullyQualifiedType()
|
||||
{
|
||||
@@ -227,11 +229,11 @@ class _Application extends \IPS\Application
|
||||
{
|
||||
$menu = parent::acpMenu();
|
||||
|
||||
if ( ! \IPS\Db::i()->checkForTable('cms_databases') )
|
||||
if ( ! \IPS\Db::i()->checkForTable('cms_databases') or ! \IPS\Member::loggedIn()->hasAcpRestriction( 'cms', 'databases', 'databases_use' ) )
|
||||
{
|
||||
return $menu;
|
||||
}
|
||||
|
||||
|
||||
/* Now add in the databases... */
|
||||
foreach( \IPS\cms\Databases::acpMenu() as $database )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user