Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.7, 3.8, 3.8.1, 3.8.4, 3.9.1, 3.10
Description
When portfolios are enabled on the forum, there is a button to "Export whole discussion to portfolio". If the user is a student with default permissions, clicking on this button will result in the following being displayed:
Sorry but you do not have the required permissions to export files from this area
|
Really this button should not be visible if the user does not have adequate permissions.
Edit by kosswa:
Steps to reproduce
Prerequisites: Course with teacher T and student S enrolled.
- Login as admin
- Enable setting enableportfolios
- Go to Site administration > Plugins > Portfolios > Manage portfolios and set the value for the portfolio plugin File download to Enabled and visible
- Logout
- Login as as teacher T
- Go to the course, turn editing mode on and add a forum to the course
- Create a new topic
- Open this topic and click on the button "Export whole discussion to portfolio"
- See that a new export page is showed
- Logout
- Login as student S
- Go to the course
- Open the forum
- Open the topic
- Click on the button "Export whole discussion to portfolio"
- Then you should see the error message "Sorry but you do not have the required permissions to export files from this area"
Error Message
Debug info: Error code: nopermissions
|
Stack trace: line 188 of /portfolio/add.php: portfolio_caller_exception thrown
|
Expected Behavior
The button should not be visible to users without the capability mod/forum:exportdiscussion