Not allow user X to edit Y's pages and vice versa

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/7/2011 5:19:53 AM
Gravatar
Total Posts 53

Not allow user X to edit Y's pages and vice versa

Hello,

A user should not be able to modify the page of other user. What I am trying to do is:

Allow users to register themselves to create their own pages on my website. But at the same time it is mandatory that user X should not be able to modify the content of user Y. Is this achievable with what we have in place in mojoPortal?

There are couple of more questions that I would ask if the above is doable.

 

Thanks
Aditya
http://www.easytipsandtricks.com

 

1/7/2011 9:35:33 AM
Gravatar
Total Posts 2254

Re: Not allow user X to edit Y's pages and vice versa

Hi Aditya,

Setting permissions on pages and content to prevent some users but allow others to make modifications is possible but doing it automatically is not.

You will have to write custom code and set it up to fire when new users register. The code would have to 1) create a new role for the new user and place the user in that role, 2) create a new page for the newly registered user, and 2) grant permissions on the new page to the new role.

You can get started by reading information on the User Registered Event Handler here: http://www.mojoportal.com/user-registered-event-handlers.aspx.

HTH,
Joe D.

1/7/2011 9:57:17 AM
Gravatar
Total Posts 18439

Re: Not allow user X to edit Y's pages and vice versa

Hi,

It sounds like you are trying to build a social networking site, mojoPortal is not intended for that purpose. The features of mojoPortal are generally designed for trusted users to create pages and content but they are too powerful to let untrusted users use them. I just updated the About page to clarify this. I would never recommend let any stranger who registers on your site have edit permissions.

Best,

Joe

1/7/2011 10:23:26 AM
Gravatar
Total Posts 53

Re: Not allow user X to edit Y's pages and vice versa

What Joe D said sounds like it would work, but what Joe A is saying is also correct that JS can be used by intruders to do some malicious things... 

Oh man! crying no

 

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