fix(idpe): add IsActive method back into platform for idpe
parent
920ec6749a
commit
e64fde585e
5
auth.go
5
auth.go
|
@ -24,6 +24,11 @@ func (a *Authorization) Allowed(p Permission) bool {
|
|||
return allowed(p, a.Permissions)
|
||||
}
|
||||
|
||||
// IsActive is a stub for idpe.
|
||||
func IsActive(a *Authorization) bool {
|
||||
return a.IsActive()
|
||||
}
|
||||
|
||||
// IsActive returns true if the authorization active.
|
||||
func (a *Authorization) IsActive() bool {
|
||||
return a.Status == Active
|
||||
|
|
Loading…
Reference in New Issue