All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.security.AuthorizedAccount.kt Maven / Gradle / Ivy

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