Eric Lippmann
272e791390
License source files as GPL-3.0-or-later
...
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 14:03:05 +01:00
Sukhwinder Dhillon
fc65a18bb6
Add MultiSelectQuickActions support
2024-11-19 17:44:53 +01:00
Sukhwinder Dhillon
73b8a1bcf2
ObjectAuthorization: Replace . with _ for db query
2023-05-30 13:56:56 +02:00
Johannes Meyer
73a95e055b
ObjectAuthorization: Gracefully handle incomplete objects in grantsOn()
2022-09-01 09:51:50 +02:00
Yonas Habteab
00fb54dd44
ObjectAuthorization: Don't use columns() of ipl/sql to specify columns to be selected
...
The `Sql::columns()` method doesn't override existing columns when calling this directly, because
at this point the ipl/orm query has already collected all selectable columns, which are not required
for this use case. A later call to the `columns()` method using the select base doesn't prevent all the
columns registered by the query from being selected.
2022-06-28 16:12:28 +02:00
Eric Lippmann
6fe5af8e00
Don't call Query::columns() twice in a row
...
Query::columns() is no longer additive. Use ::withColumns() instead.
2022-06-02 14:24:52 +02:00
Johannes Meyer
005193442c
ObjectAuthorization: Bail early if a role denies a permission
...
fixes #515
2022-03-31 11:19:10 +02:00
Yonas Habteab
aefd0e1f7d
Add PHP 7 argument & return type declarations to all member methods
2021-11-03 16:06:59 +01:00
Yonas Habteab
9f99637153
Introduce matchesOn & isMatchedOn methods
2021-10-01 15:30:06 +02:00
Yonas Habteab
5ff0793036
ObjectAuthorization: Check whether the permission isn't within the refusals
2021-08-31 11:34:27 +02:00
Yonas Habteab
cbb5bc441f
ObjectAuthorization: Quote RoleName which is used as an alias for mysql Query
2021-08-31 11:33:50 +02:00
Johannes Meyer
89789acc10
ObjectAuthorization: Specify $cacheKey for method loadGrants()
...
This ensures that roles are registered for the object/filter in
question no matter if there are any roles with/without restrictions.
2021-03-22 17:13:56 +01:00
Johannes Meyer
057b7dc8e0
Check permissions in object context when issuing commands
2021-03-19 15:47:57 +01:00
Johannes Meyer
c384c3198a
ObjectAuthorization: Perform check on all objects in grantsOnType()
...
`grantsOnType()` will now perform the permission check it is asked for
on every object that matches the filter. It will then cache all
individual results so that any subsequent call to `grantsOn()` will
hit the cache instead of triggering another query.
2021-03-19 15:47:57 +01:00
Johannes Meyer
47cc59e3e1
Introduce class ObjectAuthorization
2021-03-19 15:47:57 +01:00