mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AccessControl: Present user edit actions according to AC metadata (#43602)
* AccessControl: Add user metadata to user detail view * AccessControl: Do not present delete or disable buttons based on ac metadata in admin/users * AccessControl: do not allow password changing or user editing without permission * AccessControl: Fetch global:users scope for admin * AccessControl: optimize org.user metadata fetch * Chore: early return if ac metadata is not available
This commit is contained in:
@@ -24,7 +24,7 @@ export interface User {
|
||||
|
||||
export type Unit = { name: string; url: string };
|
||||
|
||||
export interface UserDTO {
|
||||
export interface UserDTO extends WithAccessControlMetadata {
|
||||
id: number;
|
||||
login: string;
|
||||
email: string;
|
||||
|
||||
Reference in New Issue
Block a user