A popup window of TinyMCE on top of Shared Pages that allow Anonymous comments.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
New
|
Undecided
|
Unassigned |
Bug Description
A popup window of TinyMCE appears on top of shared pages that allow anonymous comments.
Here's how to replicate the specific bug:
0. Clean install of Mahara
1. Log in as admin
2. Got to Administration -> Configure site -> Ste options -> User Settings
3. Set [Anonymous comments] ON
4. Go to Portfilio -> Creat a new Page -> Store some data on this page.
5. Edit this new page access -> Enable [Share with public] and [Allow comments].
6. Log out.
7. Open this page as guest role .
8. A window of TinyMCE will popup on top of this page.
I found the cause of this bug.
In /artefact/
=======
public static function add_comment_form( .....
:
:
if (!$USER-
);
=======
[message] is a TinyMCE type element.
For logined user message element ID is "add_feebackfor
For guset user message element ID is "add_feebackfor
But in /js/viewmenu.js, TinyMCE type element ID is fixed string: "add_feebackfor
I suggest
chang to:
description: | updated |
The showing of tinymce is due to the is_html_ editor_ enabled( ) function not checking if user is logged in.
The tinymce editor is only meant to be displayed if logged in.