Skip to content

Commit

Permalink
AO3-4820-AO3-3810 Reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
weeklies committed Apr 16, 2024
1 parent fb3c158 commit d4be8b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/skin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ def allowed_title
return true unless self.title.match(/archive/i)

authorized_roles = if self.is_a?(WorkSkin)
%w[superadmin support]
else
%w[superadmin]
end
%w[superadmin support]
else
%w[superadmin]
end

return true if (User.current_user.roles & authorized_roles).present?

Expand Down

0 comments on commit d4be8b8

Please sign in to comment.