52
52
// HasPermission returns true if the logged in user is admin or has a name equal to
53
53
// the pre-set admin tag.
54
func (fa FakeAuthorizer) HasPermission(operation description.Access, target names.Tag) (bool, error) {
54
func (fa FakeAuthorizer) HasPermission(operation permission.Access, target names.Tag) (bool, error) {
55
55
if fa.Tag.Kind() == names.UserTagKind {
56
56
ut := fa.Tag.(names.UserTag)
57
57
if ut.Name() == "admin" {