Pilots cannot use the dashboard or flights without admin rights (#481)

* Use auth middleware instead of specific groups for logged in state

* Auth check for admin access

* Check user admin access for updates

* Formatting
This commit is contained in:
Nabeel S
2019-12-25 13:31:09 +05:00
committed by GitHub
parent 66a1192739
commit 17637c32d4
9 changed files with 173 additions and 112 deletions

View File

@@ -21,10 +21,10 @@ users:
updated_at: now
- id: 2
pilot_id: 2
name: Carla Walters
email: carla.walters68@example.com
password: admin
api_key: testuserapikey1
name: Test User
email: test@phpvms.net
password: test
api_key: testuserapikey
airline_id: 1
rank_id: 1
home_airport_id: KJFK
@@ -34,7 +34,7 @@ users:
transfer_time: 360
created_at: now
updated_at: now
state: 0
state: 1
opt_in: 1
toc_accepted: 1
- id: 3