Tribune

Home » Liferay Portal » English » 2. Using Liferay » General

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
venka reddy
Re:Comments
2 maggio 2012 6.46
Risposta

venka reddy

Punteggio: Regular Member

Messaggi: 231

Data di Iscrizione: 23 marzo 2011

Messaggi recenti

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
RE: Re:Permissions
15 febbraio 2012 22.53
Risposta

venka reddy

Punteggio: Regular Member

Messaggi: 231

Data di Iscrizione: 23 marzo 2011

Messaggi recenti

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 the comment and even delete also for admin comment .Actually it should not.


Thanking you
venka reddy
RE: Re:Permissions
30 aprile 2012 21.34
Risposta

venka reddy

Punteggio: Regular Member

Messaggi: 231

Data di Iscrizione: 23 marzo 2011

Messaggi recenti

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
venka reddy
RE: Re:Permissions
1 maggio 2012 21.59
Risposta

venka reddy

Punteggio: Regular Member

Messaggi: 231

Data di Iscrizione: 23 marzo 2011

Messaggi recenti

venka 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
RE: Re:Permissions
1 maggio 2012 22.12
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

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
RE: Re:Comments
1 maggio 2012 22.52
Risposta

Amos Fong

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1844

Data di Iscrizione: 7 ottobre 2008

Messaggi recenti

Venka,

I think you'll have to override the MBDiscussionPermission class in an ext-plugin. I think this is the code in question:

1        if ((ownerId > 0) &&
2            permissionChecker.hasOwnerPermission(
3                companyId, className, classPK, ownerId, actionId)) {
4
5            return true;
6        }


Hitoshi,
I think if you edit your post, the date will change.
venka reddy
RE: Re:Permissions
2 maggio 2012 6.49
Risposta

venka reddy

Punteggio: Regular Member

Messaggi: 231

Data di Iscrizione: 23 marzo 2011

Messaggi recenti

Hi Hitoshi Ozawa,

As Amos Fong said i have edited my post

Would you help me to solve my issue??
venka reddy
RE: Re:Comments
2 maggio 2012 6.50
Risposta

venka reddy

Punteggio: Regular Member

Messaggi: 231

Data di Iscrizione: 23 marzo 2011

Messaggi recenti

Hi Amos Fong,

Thanks you reply,

I am developing a plugin portlet, So i think i cannot override that class