Improved tools permissions handling

This commit is contained in:
Andy Miller
2019-02-08 13:53:11 -07:00
parent 6da094cc8f
commit 536898f41b
12 changed files with 171 additions and 166 deletions

View File

@@ -226,6 +226,18 @@ class Admin
return $tools;
}
public static function toolsPermissions()
{
$tools = static::tools();
$perms = [];
foreach ($tools as $tool) {
$perms = array_merge($perms, $tool[0]);
}
return array_unique($perms);
}
/**
* Return the languages available in the site
*