camper/pkg/app
jordi fita mas f7fdc594d5 Add admin page to list the users
There is no way, for now, to add, edit or remove users, because
currently we only need to list users.

I can not give admins access to the user table, for security
permissions, so i had to create a new view.  I could name it also ‘user’
in ‘camper’ scheme, but then i was afraid i would have problems with
unit tests and their search_path, so instead i called it
‘company_user_profile’, which is like ‘user_profile’ but for all users
in ‘company_user’.

I created a new Go package for it, rather than add the admin handler in
‘auth’, because ‘template’ depends on ‘auth’, and rendering from ‘auth’
would cause a dependency loop.

I needed to have the roles in gettext to translate them, but there is
no obvious place where to put the call to PgettextNoop.  For now, there
are in ‘NewAdminHandler’ because it is called once in the application’s
lifetime and they actually do not matter much.
2024-01-17 19:42:47 +01:00
..
admin.go Add admin page to list the users 2024-01-17 19:42:47 +01:00
app.go Remove now-unused locales field from admin handlers 2024-01-16 01:26:35 +01:00
login.go Split templates and handlers into admin and public 2023-08-05 03:42:37 +02:00
public.go Add management of surroundings’ highlights (points of interest) 2024-01-16 01:26:35 +01:00
user.go Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00