molten-trunk/molten5_withgrid/app/controllers/case_watchers_controller.rb
# If an +account+ instance variable is set, the
# +current_contact+ must be able to share cases for that account.
If an +account+ instance variable is set, the
+current_contact+ must be able to share cases for that account.
If an + account + instance variable is set the + current_contact + must be able to share cases for that account .
def can_view_account
    if @account
      if !current_contact.share_cases?(@account)
        render :text => "You are not authorized to view this account."
        return true
      end
    end
  end
def can_view_account if @account if ! current_contact . share_cases? ( @account ) render :text => "You are not authorized to view this account." return true end end end
If an +account+ instance variable is set, the
+current_contact+ must be able to share cases for that account.
If an + account + instance variable is set the + current_contact + must be able to share cases for that account .