diff --git a/api/user.go b/api/user.go index 24f004c4be..54b85e1408 100644 --- a/api/user.go +++ b/api/user.go @@ -292,7 +292,7 @@ func (ua *UserAPI) ChangePassword() { } } -// ToggleUserAdminRole handles PUT api/users/{}/toggleadmin +// ToggleUserAdminRole handles PUT api/users/{}/sysadmin func (ua *UserAPI) ToggleUserAdminRole() { if !ua.IsAdmin { log.Warningf("current user, id: %d does not have admin role, can not update other user's role", ua.currentUserID) diff --git a/static/resources/js/components/project-member/project-member.config.js b/static/resources/js/components/project-member/project-member.config.js index 49825c5e7e..91f76fc637 100644 --- a/static/resources/js/components/project-member/project-member.config.js +++ b/static/resources/js/components/project-member/project-member.config.js @@ -9,7 +9,6 @@ function roles() { return [ - {'id': '0', 'name': 'N/A', 'roleName': 'n/a'}, {'id': '1', 'name': 'Project Admin', 'roleName': 'projectAdmin'}, {'id': '2', 'name': 'Developer', 'roleName': 'developer'}, {'id': '3', 'name': 'Guest', 'roleName': 'guest'} diff --git a/static/resources/js/components/replication/list-replication.directive.html b/static/resources/js/components/replication/list-replication.directive.html index 56dd5d1821..85756ba7f0 100644 --- a/static/resources/js/components/replication/list-replication.directive.html +++ b/static/resources/js/components/replication/list-replication.directive.html @@ -49,13 +49,13 @@ -
// 'username' | tr // | // 'role' | tr // | // 'email' | tr // | // 'registration_time' | tr // | // 'operation' | tr // | +// 'username' | tr // | // 'email' | tr // | // 'registration_time' | tr // | // 'operation' | tr // |
---|---|---|---|---|---|
//u.username// | -N/A | //u.email// | //u.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'// |
- |
// 'project_name' | tr // | // 'repositories' | tr // | // 'role' | tr // | // 'creation_time' | tr // | // 'publicity' | tr // | +// 'project_name' | tr // | // 'repositories' | tr // | // 'role' | tr // | // 'creation_time' | tr // | // 'publicity' | tr // |
---|---|---|---|---|---|
//p.name// | //p.repo_count// | -//vm.getProjectRole(p.current_user_role_id)// | +//vm.getProjectRole(p.current_user_role_id)// | //p.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'// |