postmoogle/utils
Slavi Pantaleev e59f5d5502 Make Match() with empty list not return a positive result
Now that we use Match() in allowAdmin() as well, it's awkward to
have it return `true` when called with an empty admin list.
No admins defined was taken to mean "everyone is an admin".

We can either have a `len(users) == 0` check in `allowAdmin` which
rejects the request, or we can change `Match()` so that it doesn't
return positive responses when called with an empty list. Doing the
latter sounds better. It's more natural that matching against an empty list
will yield "no match".
2022-08-29 14:10:52 +03:00
..
email.go strip <style> in html emails 2022-08-25 21:27:00 +03:00
file.go try to receive attachments 2022-08-22 18:43:12 +03:00
html.go strip <style> in html emails 2022-08-25 21:27:00 +03:00
matrix.go add utils.UnwrapError() to provide meaningful error messages 2022-08-27 22:38:23 +03:00
user.go Make Match() with empty list not return a positive result 2022-08-29 14:10:52 +03:00
user_test.go Make Match() with empty list not return a positive result 2022-08-29 14:10:52 +03:00
utils.go refactor options to be more generic 2022-08-23 21:58:05 +03:00