portainer/api/http/handler/settings
Chaim Lev-Ari 07efd4bdda
feat(settings): add setting to disable device mapping for regular users (#4099)
* feat(settings): add setting to disable device mapping for regular users

* feat(settings): introduce device mapping service

* feat(containers): hide devices field when setting is on

* feat(containers): prevent passing of devices when not allowed

* feat(stacks): prevent non admin from device mapping

* feat(stacks): disallow swarm stack creation for user

* refactor(settings): replace disableDeviceMapping with allow

* fix(stacks): remove check for disable device mappings from swarm

* feat(settings): rename field to disable

* feat(settings): supply default value for disableDeviceMapping

* feat(container): check for endpoint admin

* style(server): sort imports
2020-07-27 09:31:14 +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): add setting to disable device mapping for regular users (#4099) 2020-07-27 09:31:14 +12:00
settings_update.go feat(settings): add setting to disable device mapping for regular users (#4099) 2020-07-27 09:31:14 +12:00