Toby Zerner
fb09cef540
Merge pull request #748 from JoshyPHP/Minifiers
...
Added support for new minifiers
2016-02-07 11:37:15 +10:30
Franz Liedke
97979b2189
Store discussion slug in database table
...
In preparation for #646 .
2016-02-04 11:46:30 +01:00
Toby Zerner
2018e424ec
Refactor ListPostsController, make filtering extensible
...
It became apparent in https://github.com/flarum/core/issues/319#issuecomment-170558573 that there was no way for extensions to add filter parameters to the /api/posts endpoint (e.g. /api/posts?filter[mentioned]=1). Simply adding an event to modify the `$where` array severely limits how much can be done with the query. This commit refactors the controller so that filters are applied directly to the query Builder, and exposes the Builder in a new `ConfigurePostsQuery` event.
2016-01-31 17:06:38 +10:30
Toby Zerner
36ad4a8554
Fix fatal error
...
"PHP Fatal error: Cannot use Symfony\Component\Translation\Translator as Translator because the name is already in use"
2016-01-31 15:35:53 +10:30
Franz Liedke
c99c83435b
Fix path to extension stub directory
...
Refs #743 .
2016-01-20 22:01:01 +01:00
Franz Liedke
c8f2d94558
Fix obsolete import
2016-01-20 21:38:14 +01:00
Franz Liedke
c842fa0184
Hardcode primary keys during installation
...
This avoids misleading assumptions about automatically generated primary keys
in some cases.
Fixes #566 .
2016-01-20 21:36:50 +01:00
Toby Zerner
285e397d05
Remove hack to make tag permissions work
...
Since we now grant these global permissions if the user has the respective permission for any individual tags.
2016-01-16 14:07:13 +10:30
Toby Zerner
2e27d5938a
Merge branch 'master' of https://github.com/flarum/core
2016-01-16 13:57:17 +10:30
Toby Zerner
be013c6db0
Check permission through the gate rather than directly on the actor
2016-01-16 13:57:05 +10:30
Toby Zerner
dfc0cf53b0
Give GetPermission event priority when determining permissions
2016-01-16 13:56:37 +10:30
JoshyPHP
09ad4a180b
Added support for new minifiers
2016-01-15 16:59:56 +01:00
Franz Liedke
194f304752
Merge pull request #720 from Albert221/permission-denied-fix
...
#719 Fixed PermissionDeniedException
2016-01-13 12:31:38 +01:00
Toby Zerner
ba7fba9015
Fix/clean up created gambit
...
$matches indices were incorrect.
2016-01-13 10:03:26 +10:30
Toby Zerner
4ec108f28a
Merge branch 'created-gambit' of https://github.com/Albert221/core
2016-01-13 09:53:24 +10:30
Albert221
b123e435ff
Unified two URL prefix variables into one
2016-01-12 22:07:47 +01:00
Toby Zerner
8506d095db
Use correct directory in loadLanguagePackFrom API
2016-01-12 18:35:37 +10:30
Toby Zerner
94a62293eb
Extract Google font import to a head string, make overideable
...
Allowing headStrings to be named is a bit of a stopgap solution. Really ClientView needs to be given much more power with headStrings and footStrings as separate objects, similar to the ItemList in the JS app.
2016-01-12 18:29:21 +10:30
Franz Liedke
bd1d05ee2c
#717 : Implement helper for registering a language pack
2016-01-11 08:46:20 +01:00
Franz Liedke
4a6137fdb1
Remove Studio hack
2016-01-11 08:38:30 +01:00
Franz Liedke
537ab6e41f
Remove empty line
2016-01-11 08:15:14 +01:00
Daniel Klabbers
159810c335
removed patch from api routes, fixes #725
2016-01-11 08:09:01 +01:00
Albert221
e8a6fe2f7b
#719 Fixed PermissionDeniedException
...
...causing Whoops on debug and 500 HTTP error
instead of 403 Forbidden error page.
2016-01-07 19:09:57 +01:00
Franz Liedke
417b7f7972
Clarify console option
2016-01-07 16:32:01 +01:00
Franz Liedke
9e3771cac3
Clean up code in FileDataProvider
2016-01-07 16:31:21 +01:00
Franz Liedke
819728d8dd
Merge pull request #718 from opi/install-from-config-file
...
Add configuration file installation method.
2016-01-07 16:29:34 +01:00
opi
e3c7f5379b
Add configuration file installation method.
2016-01-07 15:20:41 +01:00
Albert221
6d42bcb5ce
256 Added created gambit
2016-01-05 17:04:41 +01:00
Albert221
096aae7919
#696 Added support for prefixes in AbstractUrlGenerator.
2016-01-04 15:28:55 +01:00
Toby Zerner
5bbcba6332
Allow existing user to be activated via API
2016-01-04 15:43:23 +10:30
Albert221
9d89d8a127
Fixed code style
2016-01-03 14:30:35 +01:00
Albert221
6dfe455fd6
#256 Added multiple author search gambit
2016-01-03 14:26:41 +01:00
Toby Zerner
08dbc246dd
Clean up
2016-01-02 15:26:05 +10:30
Toby Zerner
3767ee4bf6
Allow admins to set a time when creating a post via the API
...
Again, the use-case for this is to allow the API to be used to import data from an old forum.
2016-01-02 15:25:48 +10:30
Toby Zerner
248de34242
Don't automatically activate users created by admins - require an attribute to be set
2016-01-02 15:24:35 +10:30
Toby Zerner
8d671f4de4
Make sure GetPermission event arguments array is empty if there is no model
2016-01-02 15:23:48 +10:30
Toby Zerner
6de7038f83
Allow setting the token lifetime
2016-01-02 15:22:53 +10:30
Toby Zerner
07a20a10fd
Move flood control from core to API layer
...
This means that flood control can be disabled depending on the nature of the request (i.e. when authenticated using a master API key). The particular use case for this is to allow using the API to migrate data from an old forum.
2016-01-02 15:22:16 +10:30
Toby Zerner
c8027d344a
Add admin-only email: gambit to look up users by email
2016-01-02 15:09:56 +10:30
Toby Zerner
f7709aff95
Allow custom redirection after logging out
2016-01-02 15:08:50 +10:30
Toby Zerner
46818ccd94
Extend access token lifetime when remembering a login
2016-01-02 15:08:28 +10:30
Toby Zerner
f6f9e45085
Disable session (and thus enable sudo mode) when authenticating with API token
2016-01-02 15:07:33 +10:30
Toby Zerner
ff0ce09620
Ensure routes are only populated after extensions have registered listeners
...
Because extensions can have dependencies injected, a RouteCollection could potentially be instantiated, and thus the ConfigureRoutes event would be called before extensions have had a chance to subscribe to it. Instead, we instantiate the RouteCollection on demand, but only populate it when the application boots.
2016-01-02 15:03:11 +10:30
Toby Zerner
e86cc39f5b
API: Add an event to configure server middleware
2016-01-02 15:00:07 +10:30
Toby Zerner
a719d4109f
Ensure a new asset revision identifier is generated if there is none
2016-01-02 14:59:09 +10:30
Toby Zerner
5a4e3b09cf
Allow extensions to modify text/XML prior to formatting
2015-12-30 15:27:34 +10:30
Toby Zerner
08dae7b530
Add getters
2015-12-30 15:26:24 +10:30
Toby Zerner
aa516fb5c3
Extract method
2015-12-30 15:26:11 +10:30
Toby Zerner
1cac48f90a
Always grant master API keys sudo mode
2015-12-30 15:26:07 +10:30
Toby Zerner
5e476fae16
Merge branch 'oauth2-controller'
2015-12-29 11:13:00 +10:30