mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
feat: audit log api (#3898)
This commit is contained in:
@ -247,7 +247,7 @@ func CanAssignRole(roles []string, assignedRole string) bool {
|
||||
func RoleByName(name string) (Role, error) {
|
||||
roleName, orgID, err := roleSplit(name)
|
||||
if err != nil {
|
||||
return Role{}, xerrors.Errorf(":%w", err)
|
||||
return Role{}, xerrors.Errorf("parse role name: %w", err)
|
||||
}
|
||||
|
||||
roleFunc, ok := builtInRoles[roleName]
|
||||
|
Reference in New Issue
Block a user