Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Admin access to config but not superadmin

Started by Muut Archive 10 years ago · 6 replies · 458 views
10 years ago

Hi is there a way I can give an admin user that isn't a superadmin access to site config, or even better just one tab of the config? Eg:

YAML
access:
  admin:
    login: 'true'
    super: 'false'
    pages: 'true'
    config: 'true'

Or better:

YAML
access:
  admin:
    login: 'true'
    super: 'false'
    pages: 'true'
    config.site: 'true'
OR
    config:
       site: 'true' 

Thanks

10 years ago

Use admin.configuration_site (change _site to any config route you want to allow access)

10 years ago

Hi, sorry I still can't get this to work... I've tried:

YAML
access:
  admin:
    login: 'true'
    super: 'false'
    pages: 'true'
    statistics: 'true'
    configuration_site: 'true'

and

YAML
access:
  admin.configuration_site: 'true'

but that user still can't access the config file...

10 years ago

Yes multiple times. So that syntax was right?

10 years ago

This should work (tested):

YAML

access:
  admin:
    login: 'true'
    super: 'false'
    configuration: 'true'
    configuration_site: 'true'
👍 1
10 years ago

Yes! That works, thank you. It was the configuration: trueit needed. Cheers

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2957 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago