Project users api
Created by: miks
Fix #1379 (closed)
Merge request reports
Activity
Unable to load the diff Created by: rspeicher
These don't go here. They should be in a
before
block, or better yet make themlet
s and lose the instance variables.This is why the spec/requests/api/users spec is failing.
By Administrator on 2012-09-08T17:55:19 (imported from GitLab project)
By Administrator on 2012-09-08T17:55:19 (imported from GitLab)
Created by: AlexDenisov
Maybe make sense to do this more RESTful? Like
GET :id/users - list of users POST :id/users - add user(s) PUT :id/users - change access level for existed user(s) DELETE :id/users - remove user(s) from team
What do you think about this? I think it would be more clean and RESTful.
By Administrator on 2012-09-06T13:48:22 (imported from GitLab project)
By Administrator on 2012-09-06T13:48:22 (imported from GitLab)
20 20 21 21 delegate :name, :email, to: :user, prefix: true 22 22 23 def self.bulk_delete(project, user_ids) 24 UsersProject.transaction do 25 UsersProject.where(:user_id => user_ids, :project_id => project.id).each do |users_project| 26 users_project.delete Created by: miks
I need to check whether user has ability to manage users thought API, what is the best way to achieve it? Without permissions check user with "guest" access can change levels/delete/add other users. Also, for now guest user thought API can delete/modify snippets, there is no ability check.
By Administrator on 2012-09-08T14:36:02 (imported from GitLab project)
By Administrator on 2012-09-08T14:36:02 (imported from GitLab)
20 20 21 21 delegate :name, :email, to: :user, prefix: true 22 22 23 def self.bulk_delete(project, user_ids) 24 UsersProject.transaction do 25 UsersProject.where(:user_id => user_ids, :project_id => project.id).each do |users_project| 26 users_project.delete Created by: coveralls
Changes Unknown when pulling ba584c7d on miks:project_users_api into * on gitlabhq:master*.
By Administrator on 2013-11-20T23:13:03 (imported from GitLab project)
By Administrator on 2013-11-20T23:13:03 (imported from GitLab)