1 # frozen_string_literal: true
3 class NotificationsController < ApplicationController
4 include PaginationMethods
8 before_action :authorize_web
9 before_action :set_locale
11 authorize_resource :class => false
13 before_action :check_database_readable
16 notifications = current_user.notifications.where(:type => UserNotifications::LISTABLE_NOTIFICATIONS)
17 @notifications = get_page_items(notifications)
18 @params = params.permit