(cherry picked from commit 9ff2765bb9)
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
This commit is contained in:
co-authored by
Josh Hunt
parent
97ee2cf918
commit
63f6207a1f
@@ -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