added feature test and permissions for custom_domain
This commit is contained in:
parent
364adffdab
commit
52cdb41618
3 changed files with 11 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ module Admin
|
|||
load_resource :program, through: :conference, singleton: true, except: :index
|
||||
load_resource :user, only: [:remove_user]
|
||||
|
||||
def cusrom_domain; end
|
||||
def custom_domain; end
|
||||
|
||||
def index
|
||||
# Redirect to new form if there is no conference
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ class AdminAbility
|
|||
track_ids = Track.joins(:program).where('programs.conference_id IN (?)', conf_ids).pluck(:id)
|
||||
|
||||
can :manage, Resource, conference_id: conf_ids
|
||||
can [:read, :update, :destroy], Conference, id: conf_ids
|
||||
can [:read, :update, :destroy, :custom_domin], Conference, id: conf_ids
|
||||
can :manage, Splashpage, conference_id: conf_ids
|
||||
can :manage, Contact, conference_id: conf_ids
|
||||
can :manage, EmailSettings, conference_id: conf_ids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue