mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Backend: Remove redundant condition of ROLE_VIEWER
(#19211)
This commit is contained in:
parent
14f1cf29f0
commit
a41a7ea656
@ -36,11 +36,7 @@ func (r RoleType) Includes(other RoleType) bool {
|
|||||||
return other != ROLE_ADMIN
|
return other != ROLE_ADMIN
|
||||||
}
|
}
|
||||||
|
|
||||||
if r == ROLE_VIEWER {
|
return r == other
|
||||||
return other == ROLE_VIEWER
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RoleType) UnmarshalJSON(data []byte) error {
|
func (r *RoleType) UnmarshalJSON(data []byte) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user