Device group based access (#10568)

* Device group based access

* Use Permissions class to resolve permissions

Also give port access based on device access

* Convert more pages to use Permissions class

* shorten config setting name
use Eloquent relationships in several places
alphabetize config_definitions.json

* Change Models and Permissions

* Clean up ajax_search LIMIT sql

* Convert more pages to use Permissions class

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
Jellyfrog
2019-12-30 12:11:26 +01:00
committed by GitHub
parent 1998b8dd00
commit b361710148
44 changed files with 402 additions and 252 deletions

View File

@@ -5,6 +5,7 @@ return [
'groups' => [
'alerting' => 'Alerting',
'auth' => 'Authentication',
'authorization' => 'Authorization',
'external' => 'External',
'global' => 'Global',
'os' => 'OS',
@@ -23,6 +24,9 @@ return [
'ad' => 'Active Directory Settings',
'ldap' => 'LDAP Settings'
],
'authorization' => [
'device-group' => 'Device Group Settings'
],
'discovery' => [
'general' => 'General Discovery Settings',
'route' => 'Routes Discovery Module',
@@ -592,6 +596,13 @@ return [
'description' => 'Poller performance log entries older than (days)',
'help' => 'Cleanup done by daily.sh'
],
'permission' => [
'device_group' => [
'allow_dynamic' => [
'description' => 'Enable user access via dynamic Device Groups',
]
]
],
'ping' => [
'description' => 'Path to ping'
],