app/controllers/your_data_controller.rb
#
# Shows form with activity details to update
# If activity has been invoiced, editing is not allowed
#

Shows form with activity details to update
If activity has been invoiced, editing is not allowed
Shows form with activity details to update If activity has been invoiced editing is not allowed
def edit_activity
    assert_params_must_have :id
    render :partial => "/users/no_permissions", :layout => "main" and return false unless @activity.editable_by? @current_user
    @projects = Project.find(:all)
  end
def edit_activity assert_params_must_have :id render :partial => "/users/no_permissions" , :layout => "main" and return false unless @activity . editable_by? @current_user @projects = Project . find ( :all ) end
Shows form with activity details to update
If activity has been invoiced, editing is not allowed
Shows form with activity details to update If activity has been invoiced editing is not allowed