[#465] project collaborators page
This commit is contained in:
parent
68360c5858
commit
a8fe6e2344
|
@ -2,7 +2,6 @@ class Projects::CollaboratorsController < Projects::BaseController
|
||||||
respond_to :html, :json
|
respond_to :html, :json
|
||||||
|
|
||||||
before_action :authenticate_user!
|
before_action :authenticate_user!
|
||||||
load_resource :project
|
|
||||||
before_action :authorize_collaborators
|
before_action :authorize_collaborators
|
||||||
|
|
||||||
before_action :find_users
|
before_action :find_users
|
||||||
|
|
|
@ -38,6 +38,7 @@ class Collaborator
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(args = {})
|
def initialize(args = {})
|
||||||
|
return false if args.blank?
|
||||||
args.to_options!
|
args.to_options!
|
||||||
acc_options = args.select{ |(k, v)| k.in? [:actor, :project, :relation] }
|
acc_options = args.select{ |(k, v)| k.in? [:actor, :project, :relation] }
|
||||||
acc_options.each_pair do |name, value|
|
acc_options.each_pair do |name, value|
|
||||||
|
|
Loading…
Reference in New Issue