fokx
25
I meet the same error every time I reply to some post that is not OP:
An error occurred: You are not permitted to view the requested resource.
After digging into this a little bit, I find the culprit lies at:
The problem is:
params[:whisper]
is "false"
, which is a String, so simply change this line to:
if !DiscourseStaffAlias.user_allowed?(existing_user) || params[:whisper] == "true"
…will solve the issue.
I made a simple PR: FIX: InvalidAccess when replying to non-original post by fokx · Pull Request #67 · discourse/discourse-staff-alias · GitHub
5 Likes