mirror of
https://github.com/SrIzan10/hc-identity-vault.git
synced 2026-05-01 10:45:20 +00:00
20 lines
483 B
Ruby
20 lines
483 B
Ruby
module Backend
|
|
class StaticPagesController < ApplicationController
|
|
skip_before_action :authenticate_user!, only: [ :login ]
|
|
skip_after_action :verify_authorized
|
|
|
|
def index
|
|
if current_user&.manual_document_verifier? || current_user&.super_admin?
|
|
@pending_verifications_count = Verification.where(status: "pending").count
|
|
end
|
|
end
|
|
|
|
def login
|
|
end
|
|
|
|
def session_dump
|
|
raise "can't do that!" if Rails.env.production?
|
|
end
|
|
end
|
|
end
|