mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 23:55:47 -06:00
Auth: Check for OrgUsersAdd on frontend to display pending invites (#58217)
This commit is contained in:
parent
e410dfbab8
commit
9ff2765bb9
@ -4,7 +4,7 @@ import { FormModel } from 'app/features/org/UserInviteForm';
|
||||
import { AccessControlAction, createAsyncThunk, Invitee } from 'app/types';
|
||||
|
||||
export const fetchInvitees = createAsyncThunk('users/fetchInvitees', async () => {
|
||||
if (!contextSrv.hasPermission(AccessControlAction.UsersCreate)) {
|
||||
if (!contextSrv.hasPermission(AccessControlAction.OrgUsersAdd)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user