Ok I *think* this is a switch roles issue related to this http://tracker.moodle.org/browse/MDL-23062 but I am not sure. As admin I made a post to the news forum and then to check that students couldn't respond to it I switched my role to student - and was able to edit or delete the post. When I logged in as an actual student, it worked fine (ie I couldn't do anything with the post)
Maybe it was just the time when you are allowed to delete or update your own post, no?
But a student cannot post to a news forum so in the screenshot above it shouldn't have worked?
the code checks that you posted + allowed editing time is not over yet, the switch role will never be 100% accurate, you need to use real login if you want to be sure. Did you try to verify it again, does it disappear after the 30 minutes?
Petr "the switch role will never be 100% accurate"
Very true. As far as I know of Moodle, the switch roles feature is there to enable a teacher to see more or less what the various parts of a Moodle course will look like to a student. The "more or less" aspect varies amongst activities and modules, sometimes it is 100% and for other activities it is near impossible to completely mimick the student role.
The only way to really test moodle as a student is to log in as a real (or dummy) student.
We can only hope that the switch roles feature of Moodle 2.x will be nearer that 100% for most activities than previous versions.
Joseph
Petr "the switch role will never be 100% accurate"
Just found another example.
When logged in as Admin, Switch role to Teacher, the Settings block still displays the Site Administration menu, which is normally not displayed for the Teacher role.
Joseph
Just found another example.
When logged in as Admin, Switch role to Teacher, the Settings block still displays the Site Administration menu, which is normally not displayed for the Teacher role.
Joseph