1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 09:34:05 +00:00
Commit graph

8 commits

Author SHA1 Message Date
Justin van Elst
5e65ceb249
Merge remote-tracking branch 'origin/rls-fix-for-central-user-without-bypassrls' into rls-fix-for-central-user-without-bypassrls 2025-01-09 10:54:30 +01:00
Justin van Elst
ec792cd9c6
chore formatting 2025-01-09 10:54:17 +01:00
github-actions[bot]
7a6f2ffda6 Fix code style (php-cs-fixer) 2025-01-09 09:49:52 +00:00
Justin van Elst
55bc56356f
feat: RLS without central user (role) having bypassrls 2025-01-09 10:49:27 +01:00
f955b38e2b phpstan fixes 2025-01-05 15:50:30 +01:00
Márk Magyar
79f740d057
[4.x] General code cleanup (#1278)
* Declare sensitive parameters as sensitive

... just so that they don't show up in logs

* Remove unnecessary null-coalescing

* Simplify return

* Merge isset() calls

* Inline return

* Use nullsafe operator

* Simplify if-else branches

* Use direct empty string comparison instead of strlen()

* Add missing type

* Change interface as events expect a TenantWithDatabase not just a Tenant

* Narrow typehint

* Remove redundant type casts

* Fix style with php-cs-fixer

* Fix typos

* Revert unwanted if-else simplification

* fix phpstan errors

* narrow type

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-12-31 00:35:46 +01:00
4372e1bef2 fix phpstan errors 2024-08-06 04:35:25 +02:00
Samuel Štancl
7317d2638a
Postgres RLS + permission controlled database managers (#33)
This PR adds Postgres RLS (trait manager + table manager approach) and permission controlled managers for PostgreSQL.

---------

Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2024-04-24 22:32:49 +02:00