- ADMIN_EMAIL env var controls who has admin access - GET /api/admin/users returns all users (id, email, username, registered); returns 403 for non-admins - GET /api/me now includes is_admin flag - Menu shows "Nutzer/Users/Użytkownicy" button for admins that opens a table with name, email, and registration date for all users Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
486 B
Bash
19 lines
486 B
Bash
###> symfony/framework-bundle ###
|
|
APP_ENV=dev
|
|
APP_SECRET=change_me
|
|
###< symfony/framework-bundle ###
|
|
|
|
###> doctrine/doctrine-bundle ###
|
|
DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11-MariaDB&charset=utf8mb4"
|
|
###< doctrine/doctrine-bundle ###
|
|
|
|
###> symfony/mailer ###
|
|
MAILER_DSN=null://null
|
|
MAILER_FROM=noreply@example.com
|
|
###< symfony/mailer ###
|
|
|
|
###> app ###
|
|
APP_URL=http://localhost
|
|
DEFAULT_URI=http://localhost/dd
|
|
ADMIN_EMAIL=simon@kuehn.de
|
|
###< app ###
|