1
0
mirror of https://github.com/flarum/core.git synced 2025-08-30 03:20:36 +02:00
Commit Graph

8723 Commits

Author SHA1 Message Date
flarum-bot
e1d12a4295 Bundled output for commit e407c9472a [skip ci] 2018-09-22 04:58:46 +00:00
Clark Winkelmann
e407c9472a Clean composer promises (#1439)
* Remove unused login promise code

* Make promise usage consistent across composer action methods
2018-09-22 14:25:19 +09:30
flarum-bot
d70a75a2d8 Bundled output for commit 8107d9787c [skip ci] 2018-09-22 04:19:52 +00:00
Toby Zerner
0c429c1b9f Auth token and avatarUrl security improvements (#1514)
* Remove AbstractOAuth2Controller

There is no reason to provide an implementation for a specific oAuth2
library in core; it's not generic enough (eg. auth-twitter can't use it).

This code could be moved into another package which auth extensions
depend on, but it's a negligible amount of relatively simple code that
I don't think it's worth the trouble.

* Introduce login providers

Users can have many login providers (a combination of a provider name
and an identifier for that user, eg. their Facebook ID).

After retrieving user data from a provider (eg. Facebook), you pass the
login provider details into the Auth\ResponseFactory. If an associated
user is found, a response that logs them in will be returned. If not, a
registration token will be created so the user can proceed to sign up.
Once the token is fulfilled, the login provider will be associated with
the user.
2018-09-22 13:48:27 +09:30
Toby Zerner
8107d9787c Add migration helper to drop columns 2018-09-22 13:45:41 +09:30
Toby Zerner
c66897fd92 Merge pull request #15 from flarum/tz/1419-restrict-own-permissions
Remove obsolete permission logic
2018-09-22 12:22:22 +09:30
Toby Zerner
b0a2482c87 Merge pull request #57 from flarum/tz/1419-restrict-own-permissions
Make "own" permissions depend on the user's ability to reply
2018-09-22 12:22:17 +09:30
Toby Zerner
ee3287d3e9 Merge pull request #1513 from flarum/tz/1419-restrict-own-permissions
Make "own" permissions depend on the user's ability to reply
2018-09-22 12:22:03 +09:30
Toby Zerner
ac6d9418e1 Remove obsolete permission logic
flarum/core#1513 changes the post.edit permission so that it is only
granted if the user also has permission to reply to the discussion. This
means that explicitly revoking the edit permission is no longer
necessary, as it will never be granted in the first place.
2018-09-22 12:19:07 +09:30
Toby Zerner
0d316f7f0f Make "own" permissions depend on the user's ability to reply
See https://github.com/flarum/core/pull/1513
2018-09-22 12:18:40 +09:30
Toby Zerner
698436e7b0 Make "own" permissions depend on the user's ability to reply
Permission to rename/hide/edit one's own discussion/post is only granted
if the user has permission to reply to the discussion. This makes sense
if you think of these actions as forms of "replying" to a discussion.

Fixes #1419 because suspended users do not have permission to reply to
discussions, therefore they will not be granted these "own" permissions.
2018-09-22 12:15:46 +09:30
Franz Liedke
9fabcff497 Fix tests 2018-09-22 00:40:19 +02:00
Franz Liedke
712d1cdd1e Display only exception messages during booting
By not letting PHP render the stack trace, we prevent displaying
sensitive information (such as the database credentials). Instead,
we display a simple line with the exception message.

In the console, the full exception can still be shown, as that is
a tool only for forum admins anyway.

Fixes #1421.
2018-09-21 23:33:28 +02:00
Franz Liedke
d35532b744 Boot Flarum app in Server classes
This is in preparation for fixing #1421 - it allows us to
encapsulate the exception handling in the server classes, so that
we can keep the skeleton (flarum/flarum) lean.
2018-09-21 23:30:14 +02:00
Franz Liedke
5fa9e1a8a2 Remove references to deleted property 2018-09-21 12:29:16 +02:00
flarum-bot
12ac907404 Bundled output for commit bd0b2a2f1d [skip ci] 2018-09-21 05:07:46 +00:00
Toby Zerner
bd0b2a2f1d Fix tests 2018-09-21 14:32:41 +09:30
Toby Zerner
92e8990e55 Apply fixes from StyleCI (#1574)
[ci skip] [skip ci]
2018-09-21 14:28:02 +09:30
Toby Zerner
ff18859f2e Remove the "debug" button from request error alerts
Using the browser's console to debug failed requests is much more powerful
2018-09-21 14:27:39 +09:30
Toby Zerner
5cda25c8b6 Make registration errors still work properly when debug mode is on 2018-09-21 14:18:17 +09:30
flarum-bot
5e1e7b2171 Bundled output for commit 50d2243fba [skip ci] 2018-09-21 02:30:05 +00:00
Toby Zerner
50d2243fba Sort user discussion list properly 2018-09-21 11:55:00 +09:30
flarum-bot
3fda95bd34 Bundled output for commit f11562f27b [skip ci] 2018-09-21 02:23:13 +00:00
Toby Zerner
f11562f27b Fix user mentions page 2018-09-21 11:52:13 +09:30
Toby Zerner
6700eeecfd Rename bootstrap.php 2018-09-21 11:48:36 +09:30
Toby Zerner
6f5aca0476 Rename bootstrap.php 2018-09-21 11:48:00 +09:30
Toby Zerner
6c45f6c6f3 Rename bootstrap.php 2018-09-21 11:47:48 +09:30
Toby Zerner
41fd579963 Rename bootstrap.php 2018-09-21 11:47:36 +09:30
Toby Zerner
7661a91fe9 Rename bootstrap.php 2018-09-21 11:47:24 +09:30
Toby Zerner
4aa0729d67 Rename bootstrap.php 2018-09-21 11:47:09 +09:30
Toby Zerner
795d7c4b3f Rename bootstrap.php 2018-09-21 11:46:57 +09:30
Toby Zerner
8ebe83d006 Rename bootstrap.php 2018-09-21 11:46:37 +09:30
Toby Zerner
eb06f9d58c Rename bootstrap.php 2018-09-21 11:45:18 +09:30
Toby Zerner
de3401436b Rename bootstrap.php 2018-09-21 11:45:06 +09:30
Toby Zerner
a58c8cd998 Rename bootstrap.php 2018-09-21 11:44:33 +09:30
Toby Zerner
ec0bd3f206 Rename bootstrap.php 2018-09-21 11:44:32 +09:30
Toby Zerner
0944d34cc3 Rename bootstrap.php 2018-09-21 11:44:32 +09:30
Toby Zerner
2931dc4b52 Rename bootstrap.php 2018-09-21 11:44:32 +09:30
flarum-bot
11c581d3f7 Bundled output for commit 8d67e6dcf5 [skip ci] 2018-09-21 02:12:33 +00:00
Toby Zerner
8d67e6dcf5 Fix live preview 2018-09-21 11:41:32 +09:30
flarum-bot
fc440380d6 Bundled output for commit 354babdc2e [skip ci] 2018-09-21 02:09:25 +00:00
Toby Zerner
354babdc2e Fix installation command 2018-09-21 11:32:46 +09:30
flarum-bot
78050e8c4e Bundled output for commit 061a6cdafa [skip ci] 2018-09-21 01:59:11 +00:00
flarum-bot
58612392fd Bundled output for commit e038aebfa0 [skip ci] 2018-09-21 01:58:54 +00:00
Toby Zerner
061a6cdafa Remove notification pluralization logic
Since we don't return an "unread count" in the API, this pluralization
logic is useless at the moment. Related to #643 and #716 but really
needs further thought in #868.
2018-09-21 11:28:11 +09:30
Toby Zerner
e038aebfa0 Remove notification pluralization logic
Since we don't return an "unread count" in the API, this pluralization
logic is useless at the moment. Related to #643 and #716 but really
needs further thought in #868.
2018-09-21 11:27:45 +09:30
Toby Zerner
288266d85a Update TextFormatter deprecated API 2018-09-21 11:23:24 +09:30
Toby Zerner
aab06e0741 Live output of migrator notes 2018-09-21 11:22:51 +09:30
Toby Zerner
2d3f1d9f5c Fix notifications crash
When loading notifications, $this->type was null and thus array_get
was returning an array instead of null. I assume this issue was
introduced in a Laravel version upgrade? Anyway, this fixes it.
2018-09-21 11:22:26 +09:30
Toby Zerner
1114de5338 Fix group badge misalignment if there is no group icon 2018-09-21 11:20:54 +09:30