TownCube
916c9db3c8
Skip group collection match when groups are not used
2024-12-07 18:24:29 +00:00
Peter Bieringer
8f80e0eb92
update copyright
2024-12-03 21:20:44 +01:00
Peter Bieringer
a54fb10e17
Fix: debug logging in rights/from_file
2024-12-03 21:19:12 +01:00
Dipl. Ing. Péter Varkoly
d1ceb620e4
Adapt function template discovery to the implementation
2024-09-22 18:38:21 +02:00
Dipl. Ing. Péter Varkoly
98c5ffdc87
Increase performace: open and parse rigts file only by starting.
...
Hanlde right sections without user.
2024-09-21 18:39:39 +02:00
Dipl. Ing. Péter Varkoly
e05fbeb950
Apply suggestions of mypy
2024-09-11 09:13:26 +02:00
Dipl. Ing. Péter Varkoly
d75b071fec
Fix the problems found by flake8.
2024-09-11 08:12:08 +02:00
Dipl. Ing. Péter Varkoly
606bd30514
Rebase
2024-09-05 10:44:28 +02:00
Peter Bieringer
a79c2ad83e
align option name
2024-08-28 08:59:32 +02:00
Peter Bieringer
e852c887d7
Enhancement: add option to toggle debug log of right with doesn't match
2024-08-28 08:03:16 +02:00
Dipl. Ing. Péter Varkoly
5167f12624
Rebase rights/from_file.py.
...
Apply proposed/asked changes.
2024-08-26 11:21:53 +02:00
Dipl. Ing. Péter Varkoly
19e5972b4f
Fix merge conflicts.
2024-08-25 14:11:48 +02:00
Mathieu Dupuy
47bc966a13
fix misspellings
2024-07-24 12:29:13 +02:00
Peter Bieringer
ac5e33c723
log matching permission
2024-06-11 13:33:34 +02:00
Peter Varkoly
b0f8d37294
User the intersection built in function of set to make the code more readable.
2022-02-24 10:45:45 +01:00
Peter Varkoly
8d19fd7a64
Now rights can be add to user groups too.
2022-02-21 17:15:21 +01:00
Dipl. Ing. Péter Varkoly
eda8309a04
Implementing group based collection matching.
...
Optimize rights evaluation.
2022-02-21 08:36:10 +01:00
Lauri Tirkkonen
4c44940ec1
config & rights: use open() for better error messages
...
ConfigParser().read() doesn't differentiate between different types of
failure to read files, causing eg. "No such file" to be logged in all
cases, for example if permissions are insufficient. fix that by using
open() and ConfigParser().read_file() instead.
2022-01-11 20:20:21 +01:00
Unrud
bbaf0ebd8c
Change name in file header
2021-12-09 16:55:46 +01:00
Unrud
cecb17df03
More type hints
2021-09-26 22:24:45 +02:00
Unrud
d5f5eeeddf
from_file rights: Replace config parser interpolation
2020-04-22 19:20:24 +02:00
Unrud
f6a3a19680
Simplify Rights plugin interface
2020-04-09 22:02:03 +02:00
Unrud
db7587c593
Cosmetic changes
2020-01-21 19:40:02 +01:00
Unrud
e07df9fd1d
Prefix internal attributes with underscore
2020-01-19 21:07:54 +01:00
Unrud
88a0af8ba1
Improve documentation
2020-01-12 23:32:28 +01:00
Unrud
b7590f8c84
Rework configuration
2019-06-17 04:18:09 +02:00
Unrud
63e6d091b9
Update copyright
2019-06-17 04:13:24 +02:00
Unrud
5e0a387ed9
remove whitespace before email
2018-09-04 03:33:47 +02:00
Unrud
5429f5c1a9
assert sanitized and stripped paths
2018-08-28 16:19:50 +02:00
Unrud
8869b34470
refactor
2018-08-28 16:19:43 +02:00
Guillaume Ayoub
586773148e
Use a more simple rights manager
2013-08-14 10:50:59 +02:00
Guillaume Ayoub
af30483f69
Fix docstring again
2013-07-09 18:33:35 +02:00
Guillaume Ayoub
7a6efedcff
Fix docstring
2013-07-09 18:32:42 +02:00
Guillaume Ayoub
847235f6e7
Read the configuration file for rights each time
...
We now re-parse the file each time we need to get the rights. It's
definitely too much, but it's not the slowest part of Radicale.
2013-05-22 18:49:30 +02:00
Guillaume Ayoub
1b098058bd
Update the documentation about leading slash in right management file's sections
2013-05-15 22:49:48 +02:00
Guillaume Ayoub
ca0a1ecfde
Log if the file used for rights management is not found
2013-05-15 22:49:02 +02:00
Guillaume Ayoub
fce91e7060
Allow ~ in rights filename
2013-05-15 22:41:51 +02:00
Guillaume Ayoub
45e844cda2
Fix a read/write mismatch in from_file rights manager
2013-05-15 22:29:40 +02:00
Guillaume Ayoub
406bb6e8cc
Update copyright years
2013-04-26 01:28:03 +02:00
Guillaume Ayoub
dd94660ef0
Use "is None" instead of "== None"
2013-02-01 00:16:31 +01:00
Guillaume DOTT
85a7b7db50
Prevent exception in from_file when user is None
2013-01-31 22:41:50 +01:00
Guillaume DOTT
5a3f0e4d97
Handle exceptions when looking for rights in a file
2012-12-11 15:03:29 +01:00
Guillaume Ayoub
4c064bcf35
Clean rights from file and remove tests
2012-09-15 09:08:01 +02:00
Matthias Jordan
e3bc6afdd3
Added file-based rights management
2012-08-11 00:56:45 +02:00