mirror of
https://github.com/grafana/grafana.git
synced 2025-01-15 19:22:34 -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
|
||||
}
|
||||
|
||||
if r == ROLE_VIEWER {
|
||||
return other == ROLE_VIEWER
|
||||
}
|
||||
|
||||
return false
|
||||
return r == other
|
||||
}
|
||||
|
||||
func (r *RoleType) UnmarshalJSON(data []byte) error {
|
||||
|
Loading…
Reference in New Issue
Block a user