Skip to content

Commit

Permalink
Added is_administrator to user API for SFAPI use
Browse files Browse the repository at this point in the history
  • Loading branch information
edwoodward committed Jan 25, 2021
1 parent 0fc60bd commit 20bfbee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/representers/api/v1/user_representer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ class UserRepresenter < Roar::Decorator
description: 'Whether the user is part of a Key Institutional Partner school'
}

property :is_administrator,
type: :boolean,
readable: true,
writeable: false,
schema_info: {
description: 'Whether the user is an Accounts admin'
}

property :grant_tutor_access,
type: :boolean,
readable: true,
Expand Down

0 comments on commit 20bfbee

Please sign in to comment.