Blog module does not allow anonymous users to post content regardless of the permissions set, and thus the "edit own" and "delete own" permissions also make no sense for the blog module (see blog_access()). The attached patch edits the descriptions provided by the blog module in blog_perm() to include a disclaimer that the irrelevant settings do not apply to anonymous users.

Comments

Status: Needs review » Needs work

The last submitted patch failed testing.

cwgordon7’s picture

Status: Needs work » Needs review
StatusFileSize
new1.56 KB

Sorry about that, $type will, of course, be undefined, we should use a hardcoded 'blog' instead.

damien tournoud’s picture

Status: Needs review » Reviewed & tested by the community

This is great, those permission descriptions *are* useful, even if that page has a little too much text now.

Only local images are allowed.

sun’s picture

Status: Reviewed & tested by the community » Needs work
+  // to clarify that anonymous users can never have blogs, and to assign them
+  // certain permissions doesn't even make sense.

Please do not abbreviations in comments. The "even" might go, too. Maybe the entire comment should be reworked to rather explain the WHYs. "Does not make sense" does not explain anything.

Jaza’s picture

I think that this issue can best be solved as part of the larger effort of #248598: Label permissions which are warned about in the user interface. Tempted to mark this duplicate or to close it, but I'll leave that for someone else to decide.

This issue is also a bit different, because it's about some permissions that are simply useless / irrelevant for anonymous users, rather than dangerous. This could perhaps be considered more a bug with blog.module than with the permissions system (for overriding its own permissions such that they're irrelevant for a particular role).

deekayen’s picture

Project: Drupal core » Blog
Version: 7.x-dev » 8.x-2.x-dev
Component: blog.module » User interface
nevergone’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Outdated issue.