-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Serialized roles and per activity roles
- Loading branch information
1 parent
fdf8f9b
commit 073d8e8
Showing
7 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
src/main/kotlin/pt/up/fe/ni/website/backend/annotations/validation/HasActivityRole.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package pt.up.fe.ni.website.backend.annotations.validation | ||
|
||
import org.springframework.core.annotation.AliasFor | ||
import org.springframework.security.access.prepost.PreAuthorize | ||
|
||
@PreAuthorize("") | ||
annotation class HasActivityRole( | ||
@get:AliasFor(annotation = PreAuthorize::class, attribute = "value") | ||
val perActivityRole: String | ||
) |
25 changes: 0 additions & 25 deletions
25
src/main/kotlin/pt/up/fe/ni/website/backend/annotations/validation/ValidateRole.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters