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

3481 Commits

Author SHA1 Message Date
Toby Zerner
1f258c362a Use new migration helper 2017-07-22 12:19:29 +09:30
Toby Zerner
1dd82e0bcc Add default permissions 2017-07-22 12:18:15 +09:30
Toby Zerner
5a9711fac9 Require b7 for new migration helper 2017-07-22 12:17:30 +09:30
Toby Zerner
4e9184ae32 Add default permissions 2017-07-22 12:16:24 +09:30
Toby Zerner
ae86c1113d Require b7 for new migration helper 2017-07-22 12:15:22 +09:30
Toby Zerner
c1789f65be Add default permissions 2017-07-22 12:14:27 +09:30
Toby Zerner
9fb03d3549 Add default permissions 2017-07-22 12:09:36 +09:30
Toby Zerner
dca1a833ca Add back button tooltip translation 2017-07-22 12:08:43 +09:30
Toby Zerner
73df696778 v0.1.0-beta.7 2017-07-22 10:35:50 +09:30
Toby Zerner
5daa273bd9 Change rename discussion translation 2017-07-22 10:27:27 +09:30
Toby Zerner
367423d0af Tweak permission logic
Restricted tag permissions trump global permissions. If any tag is
restricted and the user has permission, then grant the permission,
regardless of global permissions.
2017-07-20 11:51:22 +09:30
Toby Zerner
aa62a88718 Change tag permission logic
Require a user to have permission for *all* of the restricted tags a
discussion has, rather than just one.

See https://github.com/flarum/flarum-ext-approval/pull/7#issuecomment-316561532
2017-07-20 11:21:19 +09:30
Toby Zerner
05fab134e9 Fix permissions not applying
The AbstractPolicy's `before` method was changed to `after` a while ago,
and this instance must've slipped through the cracks.
2017-07-20 09:48:49 +09:30
David Sevilla Martín
3c0efb3373 Show modal if # of primary/secondary tags is less than required (#41) 2017-07-15 08:28:08 +02:00
Toby Zerner
b158810233 Update "Remember Me" checkbox label 2017-07-08 22:36:34 +09:30
Toby Zerner
c43a940dd8 Update dependencies 2017-07-08 21:49:55 +09:30
Toby Zerner
64d349a5b6 Update dependencies 2017-07-08 21:49:27 +09:30
Toby Zerner
fb17769074 Actually no npm lockfile, at least for now
Since I tend to do `npm link gulp flarum-gulp` so I'm not sure if the lockfile is valid?
2017-07-08 21:48:36 +09:30
Toby Zerner
b3fd4d92bd Actually no npm lockfile, at least for now
Since I tend to do `npm link gulp flarum-gulp` so I'm not sure if the lockfile is valid?
2017-07-08 21:48:28 +09:30
Toby Zerner
c134843633 Actually no npm lockfile, at least for now
Since I tend to do `npm link gulp flarum-gulp` so I'm not sure if the lockfile is valid?
2017-07-08 21:48:19 +09:30
Toby Zerner
a5d79ea287 Update dependencies 2017-07-08 21:41:36 +09:30
Toby Zerner
c349e8cb54 Update dependencies 2017-07-08 21:38:57 +09:30
Toby Zerner
162eef01dd Update dependencies 2017-07-08 21:36:49 +09:30
Toby Zerner
99c62ccdb0 Fix validation of "hidden" checkbox not working 2017-07-08 21:36:30 +09:30
Clark Winkelmann
86496f3e06 Keep images and links when quoting (#25)
* Keep images and links when quoting

* Fix bower dependencies
2017-06-29 08:26:15 +09:30
Clark Winkelmann
2bbf4a2b4b Drop bower usage (#27) 2017-06-29 08:25:24 +09:30
David Sevilla Martín
eac6e2e32f Use mentioned_by_self_text correctly (#26)
* Use mentioned_by_self_text correctly

* Whoops! Use , not david

* Fix dist js error
2017-06-25 10:54:18 +09:30
David Sevilla Martín
f33ee0dd43 Add core.admin.basics.show_language_selector_label 2017-06-12 09:20:27 -04:00
David Sevilla Martín
3945dbf760 Fix capitalization. Whoops! 2017-05-26 20:45:35 -04:00
David Sevilla Martín
7f59657230 Add view user list locale 2017-05-26 19:15:23 -04: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
Miles Cellar
8a034a21c3 Optimize Union Jack SVG with SVGO
The SVG now weighs 259 bytes only (27.45% saving).
2017-05-18 22:23:55 +02:00
Miles Cellar
19ae5c0252 Add IPv4/IPv6 validation messages
Source: 7e5739d266
2017-05-18 22:07:12 +02:00
StoneSoldier
4cbb914cdc flagged_by text grammar fix (#103)
* flagged_by text grammar fix

changed "{username} flagged" to "Flagged by {username}" and "{username}
flagged as {reason}" to "{username} flagged this as {reason}"

* changed to "Flagged by {username} as {reason}"
2017-05-10 20:47:09 +02:00
Franz Liedke
81a311c256 Fix order of imports 2017-04-13 09:30:38 +02:00
Franz Liedke
ffa5e8b8c7 Disallow editing if discussions are locked
Fixes flarum/core#1156.
2017-04-13 08:22:08 +02:00
Dave Shoreman
c2fe1fdce5 Lazy-load any included relationships on /api/tags 2017-04-11 14:01:17 +01:00
Dave Shoreman
f61d834a76 Enable parent to be set during creation via API (#39)
* Enable parent to be set during creation via API

Sets the parent ID as long as it exists and is a top-level primary tag.
If it's not, it'll simply be ignored. Position is set automatically to
be one higher than the current highest, or 0 if parent has no children.

Example data (in addition to the usual attributes):
```
"relationships": {
    "parent": {
        "data": {
            "id": 1
        }
    }
}
```

* Add support for creating top-level tags

To set a top-level primary tag, pass parent id of 0
For a secondary tag, pass null or remove it from the request
To set as a child, pass the parent tag's id
2017-04-11 13:54:35 +09:30
Dave Shoreman
941a0b2c8a Specify available includes for /api/tags endpoint 2017-04-10 23:23:32 +01:00
Dave Shoreman
fb8ad8fe9a Fix Internal Server Error for blank API requests
Attempting to send an empty body to the create and update endpoints will
result in Flarum outputting "Internal Server Error" as plain text,
instead of failing gracefully with a json-ised validation exception.

This commit adds an empty array as the third parameter to array_get,
which sets the default value and thus allows Flarum to do its thing.
2017-04-06 04:16:40 +01:00
Franz Liedke
425a612537 Recompile dist JS 2017-03-06 22:01:14 +01:00
Franz Liedke
04b32d9abc Improve order of mention auto-completes
Suggest plain mention of username before explicitly replying to a
specific post.

Closes flarum/core#1118.
2017-03-06 22:00:25 +01:00
Miles Cellar
ec5059221e Update description of filled rule
Source: 90886732cf
2017-03-05 20:31:55 +01:00
Miles Cellar
35db9d7294 Add "Rename" to the reused translations
Just because there are now two references of it.
2017-03-02 16:41:15 +01:00
Franz Liedke
cf82c04525 Fix nesting of rename_discussion translations
Refs #98.
2017-02-28 22:39:33 +01:00
Franz Liedke
e7b794b55b Rename translation key 2017-02-26 23:47:11 +01:00
Franz Liedke
c6382eecee Merge pull request #98 from wiwatsrt/Patch-1
Rename discussion modal translations
2017-02-26 23:36:36 +01:00
VSN Reddy Janga
7e84ed7e3c Hide diff for compiled diff files 2017-02-20 19:45:45 +05:30
VSN Reddy Janga
cc8c4fe518 Hide diff for compiled diff files 2017-02-20 19:43:45 +05:30