Go to file
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
cmd/camper Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
debian Added copyright statement to files modified by Oriol 2024-01-16 17:58:49 +01:00
demo Add home’s cover carousel 2024-01-16 21:05:52 +01:00
deploy Add admin page to list the users 2024-01-17 19:42:47 +01:00
pkg Add admin page to list the users 2024-01-17 19:42:47 +01:00
po Add admin page to list the users 2024-01-17 19:42:47 +01:00
revert Add admin page to list the users 2024-01-17 19:42:47 +01:00
test Add admin page to list the users 2024-01-17 19:42:47 +01:00
verify Add admin page to list the users 2024-01-17 19:42:47 +01:00
web Add admin page to list the users 2024-01-17 19:42:47 +01:00
.gitignore Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
Makefile Add French’s Gettext file, with very little translations 2023-12-13 23:55:43 +01:00
go.mod Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
go.sum Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Add admin page to list the users 2024-01-17 19:42:47 +01:00