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:
Really this button should not be visible if the user does not have adequate permissions.
Edit by Kathrin Osswald:
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
- 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
- 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"
The button should not be visible to users without the capability mod/forum:exportdiscussion