Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.8
-
Fix Version/s: None
-
Component/s: Blog
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE
Description
It's a little confusing, probably want to remove the "Add a new entry" when viewing other people's blogs.
Attachments
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-9882 | In Blogs, when using "View course entries" the "&courseid=" is missing on "Add a new entry." |
|
|
|
I noticed this too. I added a quick check for the userid to blog/lib.php to remove this
add line 77: $userid = optional_param('userid', 0, PARAM_INT);
edit line 94: if ($USER->id == $userid && has_capability('moodle/blog:create', $sitecontext)) {
When viewing someone else's blog userid is always passed across. I have tested this for your own blog using both profile and blog block. There isn't a test in case userid = 0.
Yours
James