1
0
mirror of https://github.com/flarum/core.git synced 2025-09-01 04:11:56 +02:00
Commit Graph

42 Commits

Author SHA1 Message Date
Alexander Skvortsov
fd48af2032 Massively simplify TagPolicy 2021-05-11 22:16:55 -04:00
Alexander Skvortsov
3b3cbdc82f Fix conflicts with other extension visibility scoping (#26)
Wrapping all `wheres` in an `orWhere` ensures that there's no conflict.

See https://github.com/flarum/core/issues/2798, https://github.com/flarum/docs/pull/200
2021-04-20 14:51:01 -04:00
Alexander Skvortsov
70cbe1d186 Update to use new extenders 2021-03-13 15:15:11 -05:00
imzhi
687e1c41db ApproveContent then refresh user table DiscussionCount and CommentCount (#16) 2021-02-19 08:18:01 -05:00
Alexander Skvortsov
787bbc0f33 Make listener methods static
This is needed since we're listening to the individual methods of the class, as opposed to registering the class as a subscriber.
2020-12-10 23:33:45 -05:00
Alexander Skvortsov
8b356d82d1 Apply fixes from StyleCI 2020-12-08 20:08:37 +00:00
Alexander Skvortsov
bd9553eb33 Refactor for new extenders 2020-12-08 15:08:18 -05:00
Sami Mazouz
bebced2d53 Use new extenders (#23) 2020-12-08 14:04:22 -05:00
Alexander Skvortsov
86d3c0ce0a Use $actor->assertCan instead of $actor->can 2020-07-19 16:24:56 -04:00
Matt Kilgore
425ba74903 Remove AssertPermissionTrait (#19)
* Removed AssertPermissionTrait

* Apply fixes from StyleCI

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-07-19 16:23:03 -04:00
Franz Liedke
6fa5cc4408 Use new Model extender 2020-04-24 15:54:12 +02:00
Franz Liedke
a4d447e39e Apply fixes from StyleCI 2019-11-29 23:01:32 +00:00
Toby Zerner
1e2c0a895a Fix incorrect table name 2018-10-23 20:48:51 +10:30
Toby Zerner
d2a00225c7 Clarify ambiguous use of user_id column which was crashing search queries 2018-10-23 07:23:41 +10:30
Toby Zerner
feb940097c Database changes (#15)
* Update database references

* Use whereColumn

* Update core references
2018-09-16 20:49:28 +02:00
Franz Liedke
959f2b654c Ensure compatibility with DB table prefix 2018-08-03 01:25:15 +02:00
Franz Liedke
c88fcd5cf9 Make StyleCI happy 2018-02-23 23:48:53 +01:00
Toby Zerner
eb36d98b82 Don't need to make empty discussions visible anymore
As per flarum/core@557a65aadd
2018-01-30 11:16:10 +10:30
Toby Zerner
f559c9a651 Merge branch 'master' into visibility-scoping
# Conflicts:
#	bootstrap.php
2018-01-21 08:36:02 +10:30
Toby Zerner
a390f7ca1b Make sure the discussion is_approved attribute value is correct 2018-01-21 08:34:33 +10:30
Toby Zerner
e8103ad0b3 Fix query errors 2018-01-21 08:33:45 +10:30
Franz Liedke
7435d18940 Adapt new bootstrap format, use Asset extender 2018-01-16 23:17:47 +01:00
Toby Zerner
c0dd66bef5 Update for visibility scoping API changes in core 2018-01-11 12:19:20 +10:30
Toby Zerner
a822ab8310 Fix class name 2017-12-26 19:47:42 +10:30
Toby Zerner
15039737b8 Don't over-cache the disallowed tags 2017-12-26 19:44:53 +10:30
Toby Zerner
6f07aef206 Performance: Reuse list of disallowed tags 2017-12-26 19:44:53 +10:30
Toby Zerner
910ddc9f55 Apply fixes from StyleCI
[ci skip] [skip ci]
2017-09-14 09:15:48 +09:30
AakLak
2ea6cbee46 run the convert.sh script by CDK2020 to replace namespaces to be comp… (#8)
* run the convert.sh script by CDK2020 to replace namespaces to be compatible for beta8

* update docbloc to match updated namespace
2017-09-14 09:15:11 +09:30
Franz Liedke
34bfa56fce Merge branch 'master' of github.com:flarum/flarum-ext-approval 2017-07-27 00:21:09 +02:00
Toby Zerner
47bf958448 Apply fixes from StyleCI
[ci skip] [skip ci]
2016-11-29 05:29:35 +00:00
Franz Liedke
efdff2df68 Extract another variable 2016-11-19 16:57:11 +01:00
liji
29a5240f64 fix:discussion was not updated correctly after approval 2016-11-17 17:19:26 +08:00
Toby Zerner
78bb373a22 Make discussion isApproved attribute available when fetching notifications. fixes flarum/core#976 2016-08-27 22:51:09 +09:30
Toby Zerner
d0c54cdbf9 Only allow OP to add tags that they can start discussions without approval in
closes flarum/core#904
2016-05-28 09:52:47 +09:30
Toby Zerner
9f4e11097d Add actor information to the PostWasApproved event 2016-05-28 09:46:22 +09:30
Toby Zerner
ff6e674854 Give the is_approved attribute a default value on new Post models 2016-05-28 09:46:03 +09:30
Toby Zerner
cbab23a3f5 Fix bug in permission logic 2016-05-27 14:46:11 +09:30
Toby Zerner
4282b9be20 Add separate "start discussions without approval" permission
- Register required permissions so that "start discussions without approval" can only be set for groups that already have permission to "start discussions" (and same for reply)
- Change the "hidden" trash badge into a more descriptive gavel badge for discussions that are awaiting approval

closes flarum/core#904
2016-05-27 14:40:59 +09:30
Toby Zerner
a70e9621aa Applied fixes from StyleCI 2016-02-25 22:51:02 -05:00
Toby Zerner
cb6be3fcc5 Translations are now automatically included 2015-11-02 18:51:44 +10:30
Toby Zerner
5486cc3ed8 Update for composer branch 2015-10-11 22:54:48 +10:30
Toby Zerner
937b70bdf8 Initial commit 2015-09-22 18:14:56 +09:30