Initial commit

This commit is contained in:
Yaser
2026-08-13 19:56:46 +03:30
commit de1d57a67b
474 changed files with 43185 additions and 0 deletions

24
docs/troubleshooting.md Normal file
View File

@@ -0,0 +1,24 @@
# Troubleshooting
## Permissions
- `401 authz.invalid_permission` on specific endpoint
1. Check list of your permissions on barong seeds.yml or tower admin panel
2. If there are no such permission just add new permission on tower admin panel
- `401 authz.invalid_permission` after login
1. Check your permissions on barong rails console
```ruby
irb(main)013:0> Permission.all
irb(main)013:0> Rails.cache.read('permissions')
```
2. 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
```ruby
irb(main)013:0> Rails.cache.delete('permissions')
```
3. 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!*