/**
* Get list of all available permissions on the system
*/
public static function availablePermissions()
{
$permissions = array('Super admin', 'Content', 'Pages', 'Design', 'Plugins', 'Config', 'Config advanced', 'Languages', 'System', 'Administrators', 'Log', 'Email', 'Repository', 'Repository upload');
$plugins = \Ip\Internal\Plugins\Model::getActivePluginNames();
foreach ($plugins as $plugin) {
if (is_file(ipFile('Plugin/' . $plugin . '/AdminController.php'))) {
array_push($permissions, $plugin);
}
}
$permissions = ipFilter('ipAvailablePermissions', $permissions);
return $permissions;
}