Skip to content

Conversation

ywk253100
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.6%) to 52.574% when pulling af3e2cf on ywk253100:170720_replic into e0040a0 on vmware:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 54.198% when pulling 2e427bf on ywk253100:170720_replic into e0040a0 on vmware:master.

@@ -64,6 +64,11 @@ func (s *SecurityContext) IsSysAdmin() bool {
return s.ctx.IsSysAdmin()
}

// IsSolutionUser ...
func (s *SecurityContext) IsSolutionUser() bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make it "GetSolutionUser" or "SolutionUser" and return a customized type. so we can handle request from different components differently.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can distinguish them by GetUsername.

@ywk253100 ywk253100 merged commit b127ba3 into goharbor:master Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants