mirror of
https://github.com/flarum/core.git
synced 2025-08-12 11:24:30 +02:00
guest discussion creation improved (#98)
This fixes an issue where Guests were no longer able to click the "new discussion" button and be shown the Log In Modal.
This commit is contained in:
@@ -42,7 +42,7 @@ export default function() {
|
||||
|
||||
if (tag) {
|
||||
const color = tag.color();
|
||||
const canStartDiscussion = tag.canStartDiscussion();
|
||||
const canStartDiscussion = tag.canStartDiscussion() || !app.session.user;
|
||||
|
||||
if (color) {
|
||||
items.get('newDiscussion').attrs.style = {backgroundColor: color};
|
||||
|
Reference in New Issue
Block a user