Class CommentsController
In: app/controllers/comments_controller.rb
Parent: ApplicationController

Methods

Protected Instance methods

[Source]

    # File app/controllers/comments_controller.rb, line 58
58:   def create_authorized?
59:     return ('table' == params[:action]) && is_authorized_as?(UserRole::USER_ROLE_USER)
60:   end

[Source]

    # File app/controllers/comments_controller.rb, line 62
62:   def destroy_authorized?
63:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
64:   end

[Source]

    # File app/controllers/comments_controller.rb, line 50
50:   def read_authorized?
51:     return is_authorized_as?(UserRole::USER_ROLE_USER)
52:   end

def conditions_for_collection

  [
    'comments.language_id = ?',
    [
      session[:language_native_id]
    ]
  ]

end

[Source]

    # File app/controllers/comments_controller.rb, line 46
46:   def search_authorized?
47:     return is_authorized_as?(UserRole::USER_ROLE_USER)
48:   end

[Source]

    # File app/controllers/comments_controller.rb, line 54
54:   def update_authorized?
55:     return is_authorized_as?(UserRole::USER_ROLE_USER)
56:   end

[Validate]