summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorLiam Monahan <liam@umiacs.umd.edu>2014-11-01 19:14:42 -0400
committerLiam Monahan <liam@umiacs.umd.edu>2014-11-02 18:51:34 -0500
commit2edf212a8be3bb14b844b542df587b6029897fe6 (patch)
tree28d5627dd7510e64b2e51179db01c4d93b33bd5c /lib/api/entities.rb
parente9171fea85fa15c9ecb5a974afe3ec38a78cdd2e (diff)
downloadgitlab-ce-2edf212a8be3bb14b844b542df587b6029897fe6.tar.gz
Expose projects_limit through users API if UserFull.
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index d19caf5b23a..db2dead487f 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -16,7 +16,8 @@ module API
class UserFull < User
expose :email
- expose :theme_id, :color_scheme_id, :extern_uid, :provider
+ expose :theme_id, :color_scheme_id, :extern_uid, :provider, \
+ :projects_limit
expose :can_create_group?, as: :can_create_group
expose :can_create_project?, as: :can_create_project
end