Blog 4 Umbraco Modification Part 2: Multiple Blog Posting From the Dashboard With Umbraco User Permissions
In 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)
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.