• Michal Rostecki's avatar
    Return (bool, error) in Authorizer.Authorize() · fa0dd46a
    Michal Rostecki authored
    Before this change, Authorize() method was just returning an error,
    regardless of whether the user is unauthorized or whether there
    is some other unrelated error. Returning boolean with information
    about user authorization and error (which should be unrelated to
    the authorization) separately will make it easier to debug.
    
    Fixes #27974
    fa0dd46a
rbac_test.go 8.24 KB