add isPermissionMethod #8

Merged
lqhoang99 merged 6 commits from feature/isPermission into master 2021-11-11 10:07:15 +00:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit b2373bbada - Show all commits

View File

@ -48,9 +48,9 @@ func (s Service) LoginWithEmailAndPassword(email, password string) (model.User,
return user.LoginWithEmailAndPassword(email, password)
}
// IsPermission ...
func (s Service) IsPermission(userID, permission string) bool {
return user.IsPermission(userID, permission)
// HasPermission ...
func (s Service) HasPermission(userID, permission string) bool {
return user.HasPermission(userID, permission)
}
//

View File

@ -320,8 +320,8 @@ func LoginWithEmailAndPassword(email, password string) (result model.User, err e
return
}
// IsPermission ...
func IsPermission(userID, permission string) (result bool) {
// HasPermission ...
func HasPermission(userID, permission string) (result bool) {
var (
ctx = context.Background()
)