Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubuy-74 committed Aug 3, 2024
1 parent edbfacf commit 440c228
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/pt/up/fe/ni/website/backend/model/Role.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ class Role(
if (associatedActivities.isEmpty()) {
return permissionsPayload
}
return "$this.name $permissionsPayload ${associatedActivities.joinToString(" ").trimEnd()}"
return "$name $permissionsPayload ${associatedActivities.joinToString(" ").trimEnd()}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ import pt.up.fe.ni.website.backend.model.Activity
@Repository
interface ActivityRepository<T : Activity> : CrudRepository<T, Long> {
fun findBySlug(slug: String?): T?
fun findByTitle(title: String?): T?
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ class AuthService(
.distinct()
.map {
SimpleGrantedAuthority(it)
}
}
}
}

0 comments on commit 440c228

Please sign in to comment.