mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Make it possible to view proposals from the schedule
This commit is contained in:
parent
9d668ad1b1
commit
c18400f9df
4 changed files with 100 additions and 120 deletions
|
|
@ -1,10 +1,13 @@
|
|||
class ProposalController < ApplicationController
|
||||
before_filter :verify_user
|
||||
before_filter :verify_user, :except => [:show]
|
||||
before_filter :setup
|
||||
before_filter :verify_access, :only => [:edit, :update, :destroy, :confirm]
|
||||
|
||||
def setup
|
||||
@person = current_user.person
|
||||
@person = current_user.person if current_user
|
||||
#FIXME: @conference also comes from verify_user, but we need setup also in show
|
||||
# which can be accessed anonymusly
|
||||
@conference = Conference.find_all_by_short_title(params[:conference_id]).first
|
||||
@url = conference_proposal_index_path(@conference.short_title)
|
||||
@event_types = @conference.event_types
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue