mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-28 21:37:31 +02:00
Merge branch 'master' into sync_image
This commit is contained in:
commit
610566fe73
@ -56,7 +56,7 @@ func hasProjectAdminRole(userID int, projectID int64) bool {
|
||||
|
||||
//sysadmin has all privileges to all projects
|
||||
func listRoles(userID int, projectID int64) ([]models.Role, error) {
|
||||
roles := make([]models.Role, 1)
|
||||
roles := make([]models.Role, 0, 1)
|
||||
isSysAdmin, err := dao.IsAdminRole(userID)
|
||||
if err != nil {
|
||||
return roles, err
|
||||
|
Loading…
Reference in New Issue
Block a user