fix(idpe): add IsActive method back into platform for idpe

pull/10616/head
Michael Desa 2018-10-02 13:41:46 -04:00
parent 920ec6749a
commit e64fde585e
1 changed files with 5 additions and 0 deletions

View File

@ -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