Go to file
jordi fita mas 866af09b50 Move the user role down to company_user relation
I was starting to add the public page for campsite types, creating more
granular row-level security policies for select, insert, update, and
delete, because now the guest users needed to SELECT them and they have
no related company to filter the rows with.  Suddenly, i realized that
the role was wrong in the user relation: a user can be an admin to one
company, and employee to another, and guess to yet another company;
the role should be in the company_user relation instead.

That means that to know the role to set to, the user alone is not enough
and have to know the company as well.  Had to change all the
cookie-related function to accept also the company’s host name, as this
is the information that the Go application has.
2023-08-08 02:22:16 +02:00
cmd/camper Allow users to update their profile images 2023-07-28 20:15:09 +02:00
debian Add correct dependencies for camper-sqitch 2023-07-31 16:20:13 +02:00
deploy Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
pkg Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
po Split templates and handlers into admin and public 2023-08-05 03:42:37 +02:00
revert Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
test Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
verify Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
web Add the language switched to the public layout 2023-08-06 05:53:52 +02:00
.gitignore Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
Makefile Add Debian package 2023-07-27 20:00:08 +02:00
demo.sql Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00
go.mod Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
go.sum Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Move the user role down to company_user relation 2023-08-08 02:22:16 +02:00