Skip to content

Commit

Permalink
Refactor based on PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-rl committed Dec 4, 2023
1 parent 2bb86d3 commit 4b98f10
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/policies/admin/audit_log_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ def resolve
end

def index?
Current.tenant.feature_enabled?(:audit_log) && @user.admin?
return false unless Current.tenant.feature_enabled?(:audit_log)
return false unless @user.admin?

true
end

def scroll?
Current.tenant.feature_enabled?(:audit_log) && index?
index?
end
end

0 comments on commit 4b98f10

Please sign in to comment.