grafana/public/app/features/admin
Gabriel MABILLE 0ee0a0b7a0
AccessControl: FGAC permissions for orgs endpoint on frontend (#41050)
* AccessControl: FGAC permissions for orgs endpoint on frontend

Protect org update endpoints

add or refactor missing right messages

cover org page

* removing scopes from orgs

* Perform permission control with global org

* Perform the error handling in case of 403

* Simplify frontend code by requiring read access for sure

* Remove roles I added to decrease the number of changes

* Remove the check for server admin to reduce the number of changes

* change error message

* Cleaning todos

* Remove unecessary changes

* Fix tests

* Update test snapshot

* Update pkg/api/roles.go

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>

* Update public/app/features/admin/AdminEditOrgPage.tsx

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>

* Format AdminEditOrgPage for linting

* Update public/app/features/admin/AdminEditOrgPage.tsx

Co-authored-by: Vardan Torosyan <vardants@gmail.com>

* Update public/app/features/admin/AdminEditOrgPage.tsx

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Update public/app/features/admin/AdminListOrgsPage.tsx

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Commit suggestions

* Commit suggestion canRead canWrite

* fix typo

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>
Co-authored-by: Vardan Torosyan <vardants@gmail.com>
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2021-11-18 14:10:38 +01:00
..
ldap Chore: More TypeScript strict fixes (#39300) 2021-09-17 09:47:23 +01:00
partials Admin: Cleanup old admin users edit page, see #19139 (#24463) 2020-05-10 21:05:02 +02:00
state Admin: Enable extending filters (#39825) 2021-10-07 17:41:52 +03:00
AdminEditOrgPage.tsx AccessControl: FGAC permissions for orgs endpoint on frontend (#41050) 2021-11-18 14:10:38 +01:00
AdminListOrgsPage.tsx AccessControl: FGAC permissions for orgs endpoint on frontend (#41050) 2021-11-18 14:10:38 +01:00
AdminOrgsTable.tsx AccessControl: FGAC permissions for orgs endpoint on frontend (#41050) 2021-11-18 14:10:38 +01:00
AdminSettings.tsx Build: Upgrade Webpack 5 (#36444) 2021-08-31 12:55:05 +02:00
LicenseChrome.tsx Emotion: Upgrades emotion from 10 to 11 and updates all import paths (#32541) 2021-04-01 14:15:23 +02:00
OrgRolePicker.tsx A11y/UserAdminPage: Improves tab navigation and focus management (#41321) 2021-11-05 14:45:00 +00:00
ServerStats.test.tsx AccessControl: frontend changes for adding FGAC to licensing (#39484) 2021-10-05 14:54:26 +01:00
ServerStats.tsx AccessControl: frontend changes for adding FGAC to licensing (#39484) 2021-10-05 14:54:26 +01:00
UpgradePage.tsx A11y: Fix fastpass issues for /admin/* pages (#39435) 2021-09-22 21:23:54 +01:00
UserAdminPage.tsx Add new role picker to admin/users page (#40631) 2021-11-17 18:22:40 +03:00
UserCreatePage.tsx A11y: Fix various fastpass accessibility issues (#41154) 2021-11-02 15:27:07 +00:00
UserLdapSyncInfo.tsx Access control: Make Admin/Users UI working with the permissions (#33176) 2021-04-22 13:19:41 +03:00
UserListAdminPage.tsx Admin: Enable extending filters (#39825) 2021-10-07 17:41:52 +03:00
UserOrgs.tsx Add new role picker to admin/users page (#40631) 2021-11-17 18:22:40 +03:00
UserPermissions.tsx A11y/UserAdminPage: Improves tab navigation and focus management (#41321) 2021-11-05 14:45:00 +00:00
UserProfile.tsx A11y/UserAdminPage: Improves tab navigation and focus management (#41321) 2021-11-05 14:45:00 +00:00
UserSessions.tsx A11y/UserAdminPage: Improves tab navigation and focus management (#41321) 2021-11-05 14:45:00 +00:00