func HasPermissionTo(user *model.User, permission *model.Permission) bool { roles := user.GetRoles() return CheckIfRolesGrantPermission(roles, permission.Id) }