Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

FR: Allow add-ons to add permissions #1286

Open
riasvdv opened this issue Mar 1, 2017 · 5 comments
Open

FR: Allow add-ons to add permissions #1286

riasvdv opened this issue Mar 1, 2017 · 5 comments

Comments

@riasvdv
Copy link

riasvdv commented Mar 1, 2017

Expected behaviour

Add-ons should be able to define permissions to check against

Actual behaviour

Add-ons can't ☹️

@edalzell
Copy link

edalzell commented Mar 1, 2017

@Rias500 you can't create a ServiceProvider and jam the relevant permissions into the appropriate file/object?

@riasvdv
Copy link
Author

riasvdv commented Mar 2, 2017

Maybe, but that seems like a very hacky way, I've done it before with routes but that just feels like it could break any time Statamic updates

@jcohlmeyer
Copy link

Another use case ... give addons the ability to have a permission setting so users other than super users can modify the addons built in settings page.

See: jrc9designstudio/statamic-google-analytics#4

@jcohlmeyer
Copy link

jrc9designstudio/statamic-video-embed could really benefit from this too ...

@dannyuk1982
Copy link

+1 too

increasingly moving a lot of client (editor role) settings to add-ons, with CP configs - which they then cannot access

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants