wemakecustom / gitlab-composer

Gitlab Composer repository
163 stars 44 forks source link

[FEATURE] use is_admin use accessible/all projects #12

Closed pniederlag closed 9 years ago

pniederlag commented 9 years ago

Using the projects->all api needs admin privileges

We query the current user session for admin privileges and fallback to using the projects->accessible api in case of an unprivileged user account

Fixes: gitlab-composer/issues#11