mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 22:21:11 +00:00
Fix authorization
This commit is contained in:
parent
33bbbc9566
commit
d41988c74f
3 changed files with 8 additions and 4 deletions
|
|
@ -90,6 +90,8 @@
|
|||
- if can? :update, Question.new(conference_id: @conference.id)
|
||||
%li{:class=> active_nav_li(admin_conference_questions_path(@conference.short_title))}
|
||||
= link_to 'Questions', admin_conference_questions_path(@conference.short_title)
|
||||
|
||||
- if (can? :manage, @conference.sponsorship_levels.build) || (can? :manage, @conference.sponsors.build) || (can? :manage, @conference.tickets.build)
|
||||
%li
|
||||
%a
|
||||
%span.fa.fa-usd
|
||||
|
|
@ -104,12 +106,14 @@
|
|||
- if can? :update, @conference.tickets.build
|
||||
%li{ class: active_nav_li(admin_conference_tickets_path(@conference.short_title)) }
|
||||
= link_to 'Tickets', admin_conference_tickets_path(@conference.short_title)
|
||||
|
||||
- if (can? :manage, @conference.targets.build) || (can? :manage, @conference.campaigns.build)
|
||||
%li
|
||||
%a
|
||||
%span.fa.fa-money
|
||||
Objectives
|
||||
%ul
|
||||
- if can? :update, @conference
|
||||
- if can? :update, @conference.campaigns.build
|
||||
%li{class: active_nav_li(admin_conference_campaigns_path(@conference.short_title))}
|
||||
= link_to 'Campaigns', admin_conference_campaigns_path(@conference.short_title)
|
||||
- if can? :update, @conference.targets.build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue