Refactor CheckAccessPermission().

This commit is contained in:
Gucheng Wang
2022-07-13 00:50:32 +08:00
parent 2bca424370
commit 6e70f0fc58
2 changed files with 20 additions and 11 deletions

View File

@ -51,7 +51,7 @@ func tokenToResponse(token *object.Token) *Response {
func (c *ApiController) HandleLoggedIn(application *object.Application, user *object.User, form *RequestForm) (resp *Response) {
userId := user.GetId()
allowed, err := object.CheckPermission(userId, application)
allowed, err := object.CheckAccessPermission(userId, application)
if err != nil {
c.ResponseError(err.Error(), nil)
return