fix(auth): allow platform_admin to access settings endpoints
SettingsController was restricted to 'admin' only, blocking platform_admin from the dashboard settings page (403 on general/api-keys/theme/account). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4aabda440f
commit
5b5b3ea70d
|
|
@ -20,7 +20,7 @@ import * as crypto from 'crypto';
|
|||
|
||||
@Controller('api/v1/admin/settings')
|
||||
@UseGuards(RolesGuard)
|
||||
@Roles('admin')
|
||||
@Roles('admin', 'platform_admin', 'platform_super_admin')
|
||||
export class SettingsController {
|
||||
// In-memory store for platform settings (would be a DB table in production)
|
||||
private generalSettings: Record<string, any> = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue