mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Allow to view schedule without login
Add show and events action's can abilities of schedule for not_signed_in user in order to make schedule available to view without login. Closes #1343
This commit is contained in:
parent
8fb29972da
commit
0e8e626156
2 changed files with 6 additions and 1 deletions
|
|
@ -62,6 +62,10 @@ class Ability
|
|||
can [:new, :create], Event do |event|
|
||||
event.program.cfp_open? && event.new_record?
|
||||
end
|
||||
|
||||
can [:show, :events], Schedule do |schedule|
|
||||
schedule.program.schedule_public
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue