Blog - permissions to create post

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
1/11/2012 10:16:48 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Blog - permissions to create post

I was surprised to find that to allow a user to add a blog post, they had to be in a role that had permissions to edit the page the blog was on. Without this permission, they have no "add post" link, though they can edit individual existing posts.

Is this how it should be, or a bug?

thanks

mojoPortal Version                                2.3.7.5                MSSQL           Operating System                Microsoft Windows NT 6.0.6002 Service Pack 2

ASP.NET Info                v4.0.30319 Running in Full Trust

Server Time Zone                GMT Standard Time

Server Local Time                (GMT 0) 11/01/2012 16:15:38

Greenwich Mean Time (GMT/UTC)                11/01/2012 16:15:38

1/11/2012 10:34:27 AM
Gravatar
Total Posts 18439

Re: Blog - permissions to create post

Hi,

To edit or post in the blog, the user must be in a page edit role or in an edit role on the blog instance settings under the security tab in settings for the blog.

If they can edit either the page or the feature instance they can both post new posts or edit existing ones. I can't think of a scenario where they would be able to edit existing posts without being in an edit role as described and I'm not able to reproduce that.

You should only grant trusted users a role that allows editing the blog since it is a powerful feature that allows adding javascript to a page.

If you can reproduce the problem on our demo site or provide steps to reproduce the problem I would look into it as a bug.

Best,

Joe

1/11/2012 1:06:08 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Blog - permissions to create post

I've looked into this a little more, and I think it may affect roles that are in "Roles NOT allowed to edit feature instance settings".

I've spotted that the "Add post" and "Edit settings" links are both within <span class="modulelinks">, and perhaps this is being hidden for this role even when the role has editing rights on the feature instance.

Later... sorry I was wrong about that - I have taken the affected role out of "Roles NOT allowed to edit feature instance settings" and yet they still get no "add post" link on the blog. Will try to narrow this down. It is a custom role.

 

1/11/2012 1:14:01 PM
Gravatar
Total Posts 18439

Re: Blog - permissions to create post

I just tested that and it worked correctly for me, the only link that dissappeared was the settings link when I added the role to roles not allowed to edit feature instance settings.

Best,

Joe

1/11/2012 1:28:35 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Blog - permissions to create post

I've now found that the same problem affects an HTML Content feature on the same page. If I give the affected role edit permission on this feature, this does not take effect unless they also have editing permissions on the page.

Oh no - I've now found the inverse problem. On another page in my site, there is an HTML content instance where this role does NOT have editing permissions according to the feature settings yet they CAN edit it (when I give them edit permissions on the page).

Also, there's something else up: one of my custom roles is only appearing in some of the panels under Sites Settings> Security > Permissions.

I'm beginning to worry there's something scrambled in my site/database...

Suggestions? Happy to give you (Joe) a login if you'd like a look.  Otherwise I might have to bin this role and re-create.

 

 

1/11/2012 1:46:13 PM
Gravatar
Total Posts 18439

Re: Blog - permissions to create post

I cannot produce that problem either.

If you provide steps that will reproduce the problem or if you can produce the problem on the demo site I'll look into it.

On another page in my site, there is an HTML content instance where this role does NOT have editing permissions according to the feature settings yet they CAN edit it (when I give them edit permissions on the page).

yes its supposed to work that way, page edit permissions are sufficient to edit any feature on a page, feature edit permissions are just a way to give edit permission on a feature instance without giving them edit permission on the whole page.

1/11/2012 1:58:06 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Blog - permissions to create post

No - I cannot achieve this on the demo site, but also we cannot change the site - role permissions on the demo.

OK I understand about page editing giving edit rights on features.

But my site still definitely has the other problem, plus the fact one of my custom roles is only appearing in some of the panels under Sites Settings> Security > Permissions.

We have made custom roles, mainly by renaming and adapting mojo defaults and perhaps adding one new one. We've not made any changes "under the bonnet" - only through the UI.

Would you like to take a look? Any other suggestions?

1/11/2012 2:26:26 PM
Gravatar
Total Posts 18439

Re: Blog - permissions to create post

Only other suggestions I have to try are:

logout and login again to see if its a role cookie problem

try a different skin to see if its a skin problem

try re-deploying the mojoPortal package in case some files are not up to date

check the logs for any errors

It won't really help me to see it if I cannot reproduce it I cannot fix it.

but also we cannot change the site - role permissions on the demo

I don't know what you mean by that, you can create test pages and test users and confiure the roles any way you want, just don't change the roles of the admin user.

1/11/2012 3:37:10 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Blog - permissions to create post

On the demo site under Site Settings > Security, there is no Permissions tab, so I cannot replicate my exact role.

Regarding my site, I've tried clearing cookies etc and working from different machines etc.

 

 

1/11/2012 3:39:15 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Blog - permissions to create post

On the demo site under Site Settings > Security, there is no Permissions tab, so I cannot replicate my exact role.

OK now I see this has moved up to the main admin menu.

I think I'll upgrade my site to 2.3.7.6 and see if that fixes anything.

1/11/2012 3:49:23 PM
Gravatar
Total Posts 18439

Re: Blog - permissions to create post

Actually the demo site is running a newer build, the permissions were moved out of site settings after the 2.3.7.6 release to solve this error caused by too many form elements that was a result of a recent ASP.NET security update.

There will be abother new release coming soon with that fix but it mainly affects sites with lots of roles because that creates more checkboxes and results in too many form elements.

You must sign in to post in the forums. This thread is closed to new posts.