mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Auth: Check for OrgUsersAdd on frontend to display pending invites (#58217)
This commit is contained in:
@@ -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 [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user