Blog 4 Umbraco Modification Part 2: Multiple Blog Posting From the Dashboard With Umbraco User Permissions

umbracoIn my quest to make the Blog 4 Umbraco dashboard work really well for a client of ours, I've been getting into the depths of the code and tweaking things.

I recently blogged about how to select the blog to post to from the dashboard when there are multiple blogs in Umbraco.

Now we need to limit access through the Users permissions and allow some users to create blogs on all blogs and some to create only on specific blogs.

I had to modify the SetBlogRoot() code to check for the CurrentUser permission to see if they had Create permissions.

I also have a fix for a problem I was having with ghost blogs with no versions (recycle bin?) showing up in the list.

Go take a look at the code on Pastie here (didn't format well this time embedded)

blog_mod_2

This works well in my limited testing. Please let me know if there are any issues and I'll work them out. I'm trying to get these changes to a point where I can submit a patch back to the B4U package.

Author

Jason Prothero

Jason leads the team at ProWorks Corporation, an Umbraco Platinum Partner specializing in complex Umbraco CMS builds, integrations, support, and upgrades. With 17+ years of Umbraco experience and an Umbraco MVP, he has led dozens of successful projects from versions as old as Umbraco 4 to the latest Long-Term Supported (LTS) releases. Jason is also leading the charge at ProWorks around AI and how to responsibly integrate AI into Umbraco and websites to create ROI and not simply as a novelty.

comments powered by Disqus
back to top