We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c50cf25 commit 1574621Copy full SHA for 1574621
app/views/events/_event.html.haml
@@ -9,7 +9,7 @@
9
- if @user.attending?(event.__getobj__)
10
%span.badge.bg-success.mb-3.mb-md-0
11
= link_to 'Attending', event.path, class: 'text-light text-decoration-none'
12
- - if @user.event_organiser?(event)
+ - if @user.organiser? && @user.event_organiser?(event)
13
%span.badge.bg-secondary.mb-3.mb-md-0
14
= link_to 'Manage', event.admin_path, class: 'text-light text-decoration-none'
15
.order-md-1
0 commit comments