flarum / framework

Simple forum software for building great communities.
http://flarum.org/
6.3k stars 835 forks source link

Permission denied when replying or mentioning #1987

Closed malago86 closed 4 years ago

malago86 commented 4 years ago

Bug Report

Current Behavior The forum shows an error when replying to a post or mentioning (with @) in any post.

Steps to Reproduce

  1. Go to ANY POST
  2. Click on REPLY to any post or start replying and write @
  3. See error

Expected Behavior The forum uses the "Mentions" extension which seems to be the cause of the problem, without it, there is no way to reply to specific posts or mention people with @ so the problem is gone, but I need this functionality.

Environment

Output of "php flarum info", run this in terminal in your Flarum directory.

Flarum core 0.1.0-beta.11.1 PHP version: 7.2.24-0ubuntu0.18.04.2 Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, sodium, session, standard, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imagick, json, exif, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, Zend OPcache +--------------------------+----------------+--------+ | Flarum Extensions | | | +--------------------------+----------------+--------+ | ID | Version | Commit | +--------------------------+----------------+--------+ | flarum-bbcode | v0.1.0-beta.8 | | | flarum-emoji | v0.1.0-beta.10 | | | flarum-lang-english | v0.1.0-beta.11 | | | flarum-flags | v0.1.0-beta.10 | | | flarum-lock | v0.1.0-beta.9 | | | flarum-markdown | v0.1.0-beta.10 | | | flarum-statistics | v0.1.0-beta.9 | | | flarum-subscriptions | v0.1.0-beta.9 | | | flarum-suspend | v0.1.0-beta.10 | | | flarum-tags | v0.1.0-beta.11 | | | flarum-sticky | v0.1.0-beta.9 | | | flagrow-analytics | 0.8.0 | | | v17development-seo | 1.1 | | | fof-ban-ips | 0.1.5 | | | darkfoxdeveloper-spanish | v1.0.5 | | | fof-formatting | 0.1.4 | | | fof-links | 0.2.1 | | | fof-transliterator | 0.2.0 | | | fof-linguist | 0.4.1 | | | fof-masquerade | 0.3.3 | | | flarum-likes | v0.1.0-beta.9 | | | extiverse-bazaar | 0.4.1 | | | oe800-bbcode-alerts | 0.2.0 | | | flagrow-sitemap | 0.2.0 | | | flarum-mentions | v0.1.0-beta.10 | | +--------------------------+----------------+--------+ Debug mode: ON

Possible Solution Something seems to be wrong with permissions to reply or mention but the administration does not have anything to change those permissions.

Additional Context This is the stack trace for the error:

{ "errors": [ { "status": "403", "code": "permission_denied", "detail": "..." } }

malago86 commented 4 years ago

I just found out that it was because permissions to see user list was only set to admins and not all users... A bit confusing!