- Fixed AdminController to extend OCP\AppFramework\Controller
- Annotations (@NoAdminRequired, @NoCSRFRequired) now work
- Proper parent::__construct() call
- Added test route /admin/test for debugging
- Returns JSON to confirm controller works
- Helps diagnose routing vs permission issues
- Simplified routes to essential ones only
- admin#index and admin#test
This should resolve 'Access forbidden' for system admin users.
The key fix was extending the proper Controller base class.