Skip to content

Commit

Permalink
more complete admin check
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Aug 10, 2023
1 parent dec1557 commit e8fe6b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def to_s
end

def is_admin
has_role? :admin
has_role? :admin || has_role? :admin, Site.instance
end

def is_superadmin
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ services:

web:
<<: *app
# Uncomment command to access container with out starting Rails. Useful for debugging
# command: sleep infinity
# command: sh -l -c "bundle && bundle exec rails s -b 0.0.0.0"
environment:
- VIRTUAL_PORT=3000
- VIRTUAL_HOST=.hyku.test
Expand Down

0 comments on commit e8fe6b4

Please sign in to comment.