1
0
mirror of https://github.com/flarum/core.git synced 2025-08-29 11:00:12 +02:00
Commit Graph

8263 Commits

Author SHA1 Message Date
Matteo Contrini
0005da3a0d Allow formatting post content without a request (#1848) 2019-09-04 00:12:28 +02:00
Matthew Kilgore
e5e505e85a Add Edit User permission to permissions grid (#1859) 2019-09-03 23:54:38 +02:00
Matthew Kilgore
be0b212e33 Add translation for Edit User Permission (#145)
Co-Authored-By: Franz Liedke <franz@develophp.org>
2019-09-03 23:51:31 +02:00
Franz Liedke
a61f6d4453 Merge pull request #1854 from flarum/fl/1641-fix-status-codes
Error handling: Fix status codes
2019-09-02 16:33:48 +02:00
dependabot[bot]
e04d825ee2 Bump lodash from 4.17.11 to 4.17.15 in /js (#1863)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-28 09:11:25 +02:00
dependabot[bot]
f95d2a8841 Bump mixin-deep from 1.3.1 to 1.3.2 in /js (#1862)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-28 09:06:38 +02:00
Daniël Klabbers
d403bedab3 fix phpdoc for marked_as_read_at which was migrated 2019-08-27 13:35:28 +02:00
Franz Liedke
6a6a915732 Remove unnecessary dependency
Refs #1773.
2019-08-22 10:04:38 +02:00
Franz Liedke
54b4292c5e Remove superfluous ForbiddenException
It has the same effect as the PermissionDeniedException, so let's
just use that.

Refs #1641.
2019-08-22 00:06:26 +02:00
Franz Liedke
94a892f2c2 Add/fix error message for authentic-/authorization
Refs flarum/core#1641.
2019-08-22 00:03:31 +02:00
Franz Liedke
fbc940412c When signups are prohibited, respond with HTTP 403 2019-08-21 23:48:24 +02:00
Franz Liedke
67aa8d5cef Move authentication check into assertCan() method
This will cause the right error (HTTP 401) to be thrown whenever
we're checking for a specific permission, but the user is not even
logged in. Authenticated users will still get HTTP 403.
2019-08-21 23:48:03 +02:00
David Sevilla Martín
1be6e31f2a Merge branch 'master' into ds/beta-8-fixes 2019-08-21 10:10:04 -04:00
Franz Liedke
152b455acf Remove unnecessary indirection 2019-08-21 00:06:32 +02:00
Franz Liedke
ee4a536de1 Document permission check methods 2019-08-21 00:06:31 +02:00
Franz Liedke
7d52a49cfb Fix inconsistent status codes
HTTP 401 should be used when logging in (i.e. authenticating) would make
a difference; HTTP 403 is reserved for requests that fail because the
already authenticated user is not authorized (i.e. lacking permissions)
to do something.
2019-08-21 00:06:31 +02:00
Franz Liedke
7eaa566f9a Travis: Remove deploy key 2019-08-21 00:06:16 +02:00
David Sevilla Martín
6360bd4938 Move to GitHub Actions (#1853) 2019-08-21 00:05:04 +02:00
Franz Liedke
a330d07dfe Add GitHub workflow for JavaScript building 2019-08-20 23:54:27 +02:00
Franz Liedke
f54df1bb92 Add GitHub workflow for JavaScript building 2019-08-20 23:54:26 +02:00
Franz Liedke
2b51bdf66e Add GitHub workflow for JavaScript building 2019-08-20 23:54:26 +02:00
Franz Liedke
21442688f1 Add GitHub workflow for JavaScript building 2019-08-20 23:54:25 +02:00
Franz Liedke
0ce6a4f203 Add GitHub workflow for JavaScript building 2019-08-20 23:54:25 +02:00
Franz Liedke
06eee0929e Add GitHub workflow for JavaScript building 2019-08-20 23:54:25 +02:00
Franz Liedke
161f476d26 Add GitHub workflow for JavaScript building 2019-08-20 23:54:24 +02:00
Franz Liedke
dd43db2ddb Add GitHub workflow for JavaScript building 2019-08-20 23:54:24 +02:00
Franz Liedke
34d71f1df9 Add GitHub workflow for JavaScript building 2019-08-20 23:54:24 +02:00
Franz Liedke
c0e4b5d6fa Add GitHub workflow for JavaScript building 2019-08-20 23:54:23 +02:00
Franz Liedke
6fc6e7d9f4 Add GitHub workflow for JavaScript building 2019-08-20 23:54:23 +02:00
Franz Liedke
b1f57ade19 Add GitHub workflow for JavaScript building 2019-08-20 23:54:22 +02:00
Franz Liedke
8931a4c326 Add GitHub workflow for JavaScript building 2019-08-20 23:54:21 +02:00
Franz Liedke
276fd6452a Add GitHub workflow for JavaScript building 2019-08-20 23:54:18 +02:00
flarum-bot
64243f2aa4 Bundled output for commit 6ee71dfe46 [skip ci] 2019-08-20 21:45:52 +00:00
David Sevilla Martin
6ee71dfe46 Add GitHub workflow for JavaScript building 2019-08-20 23:44:06 +02:00
David Sevilla Martin
63051e6dae Add GitHub workflow for JavaScript building 2019-08-20 16:35:05 -04:00
Franz Liedke
8953bb8cc8 Error handling: Document another interface 2019-08-20 22:20:11 +02:00
Franz Liedke
d41018dd1a Rename method 2019-08-20 20:08:01 +02:00
Franz Liedke
18b887ee39 Error handling: Tweak Reporter interface
Because reporters are used for exceptions we were not able to handle, it
makes sense to simply pass the exception, not the "handled error".
2019-08-20 20:07:56 +02:00
Franz Liedke
3eb1a6f133 Error handling: Document classes and interfaces 2019-08-20 20:07:52 +02:00
Franz Liedke
be5c1f6033 Error handling: Rename renderers to formatters
Refs #1641.
2019-08-20 20:07:47 +02:00
David Sevillas Martin
554927f9b9 Remove unneeded JS imports 2019-08-19 18:59:57 -04:00
David Sevillas Martin
da300e5a77 Update JS dependencies 2019-08-19 18:59:47 -04:00
David Sevillas Martin
8a3662c460 Update extension icon to FA 5 2019-08-19 18:59:33 -04:00
Franz Liedke
8a74becdff Remove obsolete queue config 2019-08-19 22:33:32 +02:00
Daniël Klabbers
c5f5d47d31 Queue support (#1773)
Implementation of clean queue handling, by default sync is used
2019-08-19 21:44:06 +02:00
Shivanshu Patel
7afdbb1ea9 Remove like with and compare with equals (#37)
`_` is special character in mysql so like query was fetching different result for user who's unsername starts with or contains `_`
2019-08-16 15:57:35 +02:00
Franz Liedke
bccd493967 Don't fail when extend.php doesn't return an array
Refs #1607.
2019-08-16 12:29:31 +02:00
Franz Liedke
3feca515c3 #1607: Show more details when catching boot errors 2019-08-16 12:13:47 +02:00
Franz Liedke
430ddefb42 Bubble up exception for invalid confirmation token
This way, the error handler can simply be amended to deal with this
exception type with a dedicated error message or page.

Refs #1337.
Closes #1528.
2019-08-14 19:47:56 +02:00
Franz Liedke
919ebfcc33 Determine error view and message based on type
...not based on status code.

To simplify this logic, we now use the same error "type" both when
routes are not found and specific models are not found. One exception is
ours, one is from Laravel, but for the purposes of error handling they
should be treated the same.

Fixes flarum/core#1641.
2019-08-14 19:47:56 +02:00