866 B
866 B
Troubleshooting
Permissions
401 authz.invalid_permissionon specific endpoint
- Check list of your permissions on barong seeds.yml or tower admin panel
- If there are no such permission just add new permission on tower admin panel
401 authz.invalid_permissionafter login
- Check your permissions on barong rails console
irb(main)013:0> Permission.all
irb(main)013:0> Rails.cache.read('permissions')
- If there are no permissions on rails cache or these permissions are wrong you need to run following command When you delete permissions from rails cache they will be automatically fetched
irb(main)013:0> Rails.cache.delete('permissions')
- If there are no permissions on DB you need to seed permissions
bundle exec rake db:seed
Restictions
Be careful with testing restriction and don't ban your local IP!