diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-12 12:18:14 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-12 12:45:46 +0200 |
commit | 91f63820a540e7f3e7206dc8044e257cf28527dc (patch) | |
tree | cb00077df90431ce561d6314a4542cb3a7aa988b /spec/fixtures | |
parent | dc05bcd885e441e8cac0e5038141bca0775f049d (diff) | |
download | gitlab-ce-91f63820a540e7f3e7206dc8044e257cf28527dc.tar.gz |
Return `is_admin` attribute in the GET /user endpoint for admins
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/user/admin.json | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/public_api/v4/user/admin.json b/spec/fixtures/api/schemas/public_api/v4/user/admin.json new file mode 100644 index 00000000000..f733914fbf8 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/user/admin.json @@ -0,0 +1,34 @@ +{ + "type": "object", + "required": [ + "id", + "username", + "email", + "name", + "state", + "avatar_url", + "web_url", + "created_at", + "is_admin", + "bio", + "location", + "skype", + "linkedin", + "twitter", + "website_url", + "organization", + "last_sign_in_at", + "confirmed_at", + "color_scheme_id", + "projects_limit", + "current_sign_in_at", + "identities", + "can_create_group", + "can_create_project", + "two_factor_enabled", + "external" + ], + "properties": { + "$ref": "full.json" + } +} |