Sami Mazouz
6f11e044a7
chore: update codebase to php8.1 ( #3827 )
...
* chore: set minimum php version to 8.1
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* chore: update codebase to php8.1
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* Apply fixes from StyleCI
* chore: update workflow php version
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* fix: caught errors
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* fix: more caught errors
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* fix: phpstan caught errors
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* Apply fixes from StyleCI
* fix: test-caught errors
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* fix: test-caught errors
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* fix: test-caught errors
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* fix: introduce `Flarum\Locale\TranslatorInterface`
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* Apply fixes from StyleCI
* chore: remove mixin
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* fix: test-caught errors
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
* fix: one last error
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
---------
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-05-30 11:36:12 +01:00
Sami Mazouz
9363682e1c
fix: filter values are not validated ( #3795 )
2023-05-07 18:37:53 +01:00
Sami Mazouz
da1bf8da21
chore(phpstan): enable phpstan in bundled extensions ( #3667 )
...
* feat(phpstan): pick up extended model relations typings
* feat(phpstan): pick up extended model date attributes
* feat(core): introduce `castAttribute` extender
Stops using `dates` as it's deprecated in laravel 8
* feat(phpstan): pick up extended model attributes through casts
* fix: extenders not resolved when declared namespace
* fix(phpstan): new model attributes are always nullable
* chore(phpstan): add helpful cache clearing command
* Apply fixes from StyleCI
* chore: improve extend files provider logic
* chore: rename `castAttribute` to just `cast`
* chore: update phpstan package to detect `cast` method
* chore: enable phpstan in bundled extensions
* chore: rebasing conflicts
* chore: rebasing conflicts
* chore: typings for latest 1.7 changes
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-01-19 21:49:38 +01:00
Ian Morland
fc06dba1b3
feat: Display suspension to user ( #41 )
2021-12-13 00:48:10 +01:00
Hasan Özbey
8353f087e5
suspend anonymously ( #39 )
...
* suspend anonymously
closes https://github.com/flarum/core/issues/2614
* format less file
* empty methods should return null
2021-07-18 22:47:34 +02:00
Alexander Skvortsov
c01dc63c5d
Apply fixes from StyleCI
2021-03-13 20:49:35 +00:00
Alexander Skvortsov
6eb2c9e574
Update for search/filter split
2021-03-13 15:49:23 -05:00
Ian Morland
6cb68bcd01
Provide a target for can ability ( #35 )
...
This ensures that the default user policy applies, and `user.hasPermission` is called.
2021-03-05 10:28:53 -05:00
Alexander Skvortsov
7a48da291e
Use new Policy and User Permission Groups permissions
2020-12-08 14:02:06 -05:00
Sami Mazouz
ab8a3e48b2
Use new extenders ( #31 )
2020-12-08 13:44:43 -05:00
Matthew Kilgore
4c88d093f1
Replace depreciated helper functions with classfull ones
2020-07-25 21:16:39 -04:00
Matt Kilgore
d90d0e5fbc
Removes AssertPermissionTrait ( #25 )
...
* Removes AssertPermissionTrait
* Fix ->can to ->assertCan
2020-07-19 17:37:14 -04:00
Alexander Skvortsov
061a8585c2
Add suspended gambit ( #23 )
...
* Add is:suspended gambit
* Wrap where clauses in function
* Added permission check for suspended gambit
* Apply fixes from StyleCI
Co-authored-by: luceos <daniel+github@klabbers.email>
2020-06-28 15:02:09 -04:00
Franz Liedke
91d7b6730f
Use new Model extender
2020-04-24 15:56:07 +02:00
Franz Liedke
5c7d2bb9f2
Apply fixes from StyleCI
2019-11-29 23:02:35 +00:00
Franz Liedke
de1ff99356
Get rid of event subscribers that resolve services too early
...
Refs flarum/core#1578 .
2018-12-16 15:06:10 +01:00
Toby Zerner
1b3a432c41
Database changes ( #19 )
...
* Rename suspend_until column
* Missed one!
* Update core attribute names
* Rename user.suspendUntil
2018-09-16 20:57:13 +02:00
David Sevilla Martín
83cdd63737
Apply fixes from StyleCI ( #3 )
2018-05-12 10:50:28 -04:00
David Sevilla Martín
c3c1672993
Delete old event files
2018-05-12 10:28:36 -04:00
David Sevilla Martín
cd8d747985
Merge upstream into master
2018-05-12 10:19:52 -04:00
David Sevilla Martín
88ab68af10
Merge branch 'master' into 322-notificate-user-when-suspended
2018-02-12 08:35:24 -05:00
David Sevilla Martín
cc285f6fc8
fix merge conflicts
2018-02-12 08:34:36 -05:00
David Sevilla Martín
62d30f140b
fix issues, revert js dist
2018-02-12 08:30:27 -05:00
Franz Liedke
f22c792fe0
Allow unsuspending from timed suspension
...
Fixes flarum/core#1345 .
2018-02-08 22:33:09 +01:00
Franz Liedke
9c6ef9e043
Adapt new bootstrap format, use Asset extender
2018-01-16 23:20:02 +01:00
Charlie
d6be091b79
Apply namespace changes for beta 8 ( #12 )
...
* Update for beta 8
* StyleCI :)
* docBlock
* whenSavingUser
2017-09-14 19:41:56 +02:00
David Sevilla Martín
01124e5c59
Apply fixes from StyleCI ( #1 )
2017-05-19 08:12:52 -04:00
David Sevilla Martin
59de5cceac
add alert & email notifications for suspend & unsuspend
2017-05-18 20:32:23 -04:00
Toby Zerner
69aae68b54
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2016-11-29 05:28:33 +00:00
Toby Zerner
0c8d14b14e
Use new event name
2016-06-03 11:03:04 +09:30
Toby Zerner
9455ca16d1
Applied fixes from StyleCI
2016-02-25 22:57:42 -05:00
Toby Zerner
a87b51f511
Only validate and check for suspend permission if suspendUntil attribute is present. fixes flarum/core#826
2016-02-24 16:07:05 +10:30
Daniel Klabbers
5119dbca91
fixed validation the date instead of integers
...
satisfying nitpick
2016-02-19 10:52:32 +01:00
Daniel Klabbers
56e0eeebb1
removed "useless" phpdoc, added description for validator
2016-01-23 09:49:23 +01:00
Daniel Klabbers
d6766dbf7e
added validator
2016-01-22 22:14:08 +01:00
Toby Zerner
ecf3e12947
Translations are now automatically included
2015-11-02 18:53:06 +10:30
Toby Zerner
cdcf68cf5a
Update for composer branch
2015-10-11 18:01:29 +10:30
Toby Zerner
4aa0c0e923
Add LICENSE information
2015-09-04 12:29:32 +09:30
Toby Zerner
ea5dead830
Use new listen API
2015-08-13 12:51:24 +09:30
Toby Zerner
9f0e574f20
Add suspend permission; don't let admins be suspended
2015-08-05 16:22:30 +09:30
Toby Zerner
8c897ceb72
Initial commit
2015-08-05 16:08:53 +09:30