mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
update
This commit is contained in:
parent
78366ad23a
commit
de2479edee
@ -87,6 +87,7 @@ func ProjectExists(nameOrID interface{}) (bool, error) {
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
// GetProjectByID ...
|
||||
func GetProjectByID(id int64) (*models.Project, error) {
|
||||
o := GetOrmer()
|
||||
@ -150,6 +151,7 @@ func GetPermission(username, projectName string) (string, error) {
|
||||
return r[0].RoleCode, nil
|
||||
}
|
||||
*/
|
||||
|
||||
// ToggleProjectPublicity toggles the publicity of the project.
|
||||
func ToggleProjectPublicity(projectID int64, publicity int) error {
|
||||
o := GetOrmer()
|
||||
|
Loading…
Reference in New Issue
Block a user