net.nemerosa.ontrack.model.security.AuthorizedAccount.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.security
class AuthorizedAccount(
val account: Account,
val authorisations: AuthorisationsCheck
) : AuthorisationsCheck {
override fun isGranted(fn: Class): Boolean =
(SecurityRole.ADMINISTRATOR == account.role) || authorisations.isGranted(fn)
override fun isGranted(projectId: Int, fn: Class): Boolean =
(SecurityRole.ADMINISTRATOR == account.role) || authorisations.isGranted(projectId, fn)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy