portainer/api/http/handler/settings
Chaim Lev-Ari fa9eeaf3b1
feat(settings): introduce disable stack management setting (#4100)
* feat(stacks): add a setting to disable the creation of stacks for non-admin users

* feat(settings): introduce a setting to prevent non-admin from stack creation

* feat(settings): update stack creation setting

* feat(settings): fail stack creation if user is non admin

* fix(settings): save preventStackCreation setting to state

* feat(stacks): disable add button when settings is enabled

* format(stacks): remove line

* feat(stacks): setting to hide stacks from users

* feat(settings): rename disable stacks setting

* refactor(settings): rename setting to disableStackManagementForRegularUsers

* feat(settings): hide stacks for non admin when settings is set

* refactor(settings): replace disableDeviceMapping with allow

* feat(dashboard): hide stacks if settings disabled and non admin

* refactor(sidebar): check if user is endpoint admin

* feat(settings): set the default value for stack management

* feat(settings): rename field label

* fix(sidebar): refresh show stacks state

* fix(docker): hide stacks when not admin
2020-07-27 19:11:32 +12:00
..
handler.go feat(kubernetes): introduce kubernetes support (#3987) 2020-07-06 11:21:03 +12:00
settings_inspect.go feat(api): introduce new datastore interface (#3802) 2020-06-03 11:40:04 +12:00
settings_ldap_check.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
settings_public.go feat(settings): introduce disable stack management setting (#4100) 2020-07-27 19:11:32 +12:00
settings_update.go feat(settings): introduce disable stack management setting (#4100) 2020-07-27 19:11:32 +12:00