mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 02:07:21 +02:00
Improved tools permissions handling
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user