1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 19:34:18 +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:
Daniël Klabbers
2020-10-23 01:00:09 +02:00
committed by GitHub
parent 4baa8a62d8
commit f610522f0e

View File

@@ -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};