You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
927 B

class Users::PermissionsController < UsersController
active_scaffold :permission do |conf|
conf.actions.exclude :show, :search
conf.columns = [:domain, :user, :user_email]
conf.list.columns = [:domain, :user, :user_email]
conf.create.columns = [:domain, :user_email]
conf.update.columns = [:domain, :user_email]
conf.columns[:user_email].form_ui = :virtual
conf.columns[:user_email].description = <<-DOC
User's email address, to share with. Ex. jhon.doe@domain.com .
The selected user will be able to administer this domain,
including it's records, it's subdomains and their records.
DOC
conf.create.link.label = 'Share Domain'
# conf.columns[:user_email].search_sql = 'user.email'
# conf.columns[:user].search_sql = 'full_name'
end
before_filter :ensure_nested_under_domain
protected
def beginning_of_chain
super.readonly(false)
end
end