grafana/public/app/features/org
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
..
__snapshots__ AccessControl: FGAC permissions for orgs endpoint on frontend (#41050) 2021-11-18 14:10:38 +01:00
state Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
NewOrgPage.tsx Build: Upgrade Webpack 5 (#36444) 2021-08-31 12:55:05 +02:00
OrgDetailsPage.test.tsx AccessControl: FGAC permissions for orgs endpoint on frontend (#41050) 2021-11-18 14:10:38 +01:00
OrgDetailsPage.tsx AccessControl: FGAC permissions for orgs endpoint on frontend (#41050) 2021-11-18 14:10:38 +01:00
OrgProfile.test.tsx AccessControl: FGAC permissions for orgs endpoint on frontend (#41050) 2021-11-18 14:10:38 +01:00
OrgProfile.tsx AccessControl: FGAC permissions for orgs endpoint on frontend (#41050) 2021-11-18 14:10:38 +01:00
SelectOrgPage.tsx Edit org UI text (#32455) 2021-03-30 20:54:31 +02:00
UserInviteForm.tsx A11y: Fix fastpass issues for /org/ pages (#39902) 2021-10-01 15:58:18 +01:00
UserInvitePage.tsx AngularJS: Move angular stuff into app/angular (#41415) 2021-11-08 18:41:04 +01:00