Esempio n. 1
0
func HasPermissionTo(user *model.User, permission *model.Permission) bool {
	roles := user.GetRoles()

	return CheckIfRolesGrantPermission(roles, permission.Id)
}