Fórum
Re:Comments
venka reddy, modificado 12 Anos atrás.
Re:Comments
Regular Member Postagens: 231 Data de Entrada: 23/03/11 Postagens Recentes
Hi,
I am developing Struts plugin , In this portlet we have 2 roles as Admin and Writer .
Where writer create the posts and admin have to comment the related post.
i am using the comment tag as <liferay-ui:discussion....... />
My problem is when Admin posted the comment , the writer can able to edit the comment and even delete also for admin comment .Actually it should not.
Thanking you
I am developing Struts plugin , In this portlet we have 2 roles as Admin and Writer .
Where writer create the posts and admin have to comment the related post.
i am using the comment tag as <liferay-ui:discussion....... />
My problem is when Admin posted the comment , the writer can able to edit the comment and even delete also for admin comment .Actually it should not.
Thanking you
venka reddy, modificado 12 Anos atrás.
RE: Re:Permissions
Regular Member Postagens: 231 Data de Entrada: 23/03/11 Postagens Recentesvenka reddy:
Hi,
I am developing Struts plugin , In this portlet we have 2 roles as Admin and Writer .
Where writer create the posts and admin have to comment the related post.
i am using the comment tag as <liferay-ui:discussion....... />
My problem is when Admin posted the comment , the writer can able to edit the comment and even delete also for admin comment .Actually it should not.
Thanking you
venka reddy, modificado 11 Anos atrás.
RE: Re:Permissions
Regular Member Postagens: 231 Data de Entrada: 23/03/11 Postagens Recentesvenka reddy:
Hi,
I am developing Struts plugin , In this portlet we have 2 roles as Admin and Writer .
Where writer create the posts and admin have to comment the related post.
i am using the comment tag as <liferay-ui:discussion....... />
My problem is when Admin posted the comment , the writer can able to edit even delete comment for admin comment .Actually it should not.
How can i restrict Writer to view comments, not to edit or delete the comments.
Thanking you
venka reddy, modificado 11 Anos atrás.
RE: Re:Permissions
Regular Member Postagens: 231 Data de Entrada: 23/03/11 Postagens Recentesvenka reddy:
venka reddy:Hi,
I am developing Struts plugin , In this portlet we have 2 roles as Admin and Writer .
Where writer create the posts and admin have to comment the related post.
i am using the comment tag as <liferay-ui:discussion....... />
My problem is when Admin posted the comment , the writer can able to edit even delete comment for admin comment .Actually it should not.
How can i restrict Writer to view comments, not to edit or delete the comments.
Thanking you
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: Re:Permissions
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
This is completely not related to your question but how did you get the initial post date (April 30, 2012 11:47 PM) to be before the second post date(February 15, 2012 10:53 PM)?
Amos Fong, modificado 11 Anos atrás.
RE: Re:Comments
Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Venka,
I think you'll have to override the MBDiscussionPermission class in an ext-plugin. I think this is the code in question:
Hitoshi,
I think if you edit your post, the date will change.
I think you'll have to override the MBDiscussionPermission class in an ext-plugin. I think this is the code in question:
if ((ownerId > 0) &&
permissionChecker.hasOwnerPermission(
companyId, className, classPK, ownerId, actionId)) {
return true;
}
Hitoshi,
I think if you edit your post, the date will change.
venka reddy, modificado 11 Anos atrás.
RE: Re:Comments
Regular Member Postagens: 231 Data de Entrada: 23/03/11 Postagens Recentes
Hi Amos Fong,
Thanks you reply,
I am developing a plugin portlet, So i think i cannot override that class
Thanks you reply,
I am developing a plugin portlet, So i think i cannot override that class
venka reddy, modificado 11 Anos atrás.
RE: Re:Permissions
Regular Member Postagens: 231 Data de Entrada: 23/03/11 Postagens Recentes
Hi Hitoshi Ozawa,
As Amos Fong said i have edited my post
Would you help me to solve my issue??
As Amos Fong said i have edited my post
Would you help me to solve my issue??