set up abilities
This commit is contained in:
parent
c3ed57e3e9
commit
40098183e4
4 changed files with 152 additions and 12 deletions
|
|
@ -7,7 +7,7 @@
|
|||
%small
|
||||
= @event.subtitle
|
||||
= link_to "Schedule", conference_schedule_path(@conference.short_title), :class =>"btn btn-success pull-right"
|
||||
- if has_role?(current_user, "admin")
|
||||
- if can? :edit, @event
|
||||
= link_to "Edit", edit_admin_conference_event_path(@conference.short_title, @event), :class => "btn btn-mini btn-primary pull-right"
|
||||
.row
|
||||
.col-md-3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue