hensei-api/app/controllers/api/v1
Justin Edmund 8381c668bc
Implement roles and visibility (#128)
* Add migrations to add user roles and party visibility.

* Update schema.rb

* Add admin check in User model

* Implement rudimentary visibility of teams

* Adds checks to Party model
* Hides parties from collection views depending on visibility
* Disallows viewing private parties if you're not the owner

* Add a party's visibility to blueprint

* Add admin mode

The API Controller checks if the user is logged in and whether they are an admin, and checks for the X-Admin-Mode header

* Implement admin mode overrides

* Add admin_mode to authorize

* Note to self: Implement user editing by admins

* Fix syntax error with equality in SQL

* Fix syntax error with method name

* Fix bug in who can see restricted parties

* Add privacy control to user profiles
2023-08-25 15:53:56 -07:00
..
api_controller.rb Implement roles and visibility (#128) 2023-08-25 15:53:56 -07:00
characters_controller.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00
favorites_controller.rb Refactor FavoritesController for blueprinter 2022-12-21 16:10:53 -08:00
grid_characters_controller.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
grid_summons_controller.rb Hotfix 20230821 (#127) 2023-08-24 20:41:31 -07:00
grid_weapons_controller.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
guidebooks_controller.rb Adds guidebooks and gacha tables (#95) 2023-06-04 22:23:34 -07:00
job_accessories_controller.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00
job_skills_controller.rb Updated getting skills assignable to a job 2022-12-22 23:26:23 -08:00
jobs_controller.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
parties_controller.rb Implement roles and visibility (#128) 2023-08-25 15:53:56 -07:00
raids_controller.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
search_controller.rb Add support for inclusions/exclusions (#124) 2023-08-21 20:01:15 -07:00
summons_controller.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00
users_controller.rb Implement roles and visibility (#128) 2023-08-25 15:53:56 -07:00
weapon_keys_controller.rb Fix fetching weapon keys so you dont need filters 2022-12-24 04:54:50 -08:00
weapons_controller.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00