]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: check config opt permissions 37452/head
authorTatjana Dehler <tdehler@suse.com>
Mon, 7 Sep 2020 14:56:10 +0000 (16:56 +0200)
committerLaura Paduano <lpaduano@suse.com>
Wed, 30 Sep 2020 07:16:12 +0000 (09:16 +0200)
commit27f159b19c0ffdf2a3192303fa74a80ec9c4a1f6
tree48497d3ec82c03731a34d24a5b71ee8a06122a51
parent4e5be808dc271f6dc00ebdcc352e5e8ab0bac16e
mgr/dashboard: check config opt permissions

Getting the user object fails for a non-admin user. Check
the permissions directory if the user is allowed to access the
config options instead.

Fixes: https://tracker.ceph.com/issues/47331
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
(cherry picked from commit 0942b022d0515d53e2e8742851b6aeb60f3379f9)

 Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/shared/components/telemetry-notification/telemetry-notification.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/telemetry-notification/telemetry-notification.component.ts
- Resolved import conflicts in both files; Resolved TestBed conflict (we have to stick with TestBed.get(); in octopus vs. master
  TestBed.inject(); which is related to Angular 9 being used in master and is not backported to octopus
src/pybind/mgr/dashboard/frontend/src/app/shared/components/telemetry-notification/telemetry-notification.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/telemetry-notification/telemetry-notification.component.ts