Forums

Home » Mobile » Liferay Mobile SDK

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Lokhande Vishnudas D.
Deleting Custom role which has assigned users...
June 3, 2014 1:52 AM
Answer

Lokhande Vishnudas D.

Rank: Regular Member

Posts: 135

Join Date: May 27, 2013

Recent Posts

Hi all,

i just created one custom role and assigned users to it.

Now i can easily delete that role. how can we delete the role direcltly?

I mean, while deleting role it should give alert like "it has users" or something like that.

does liferay provides notification to all the users after deleting role?
Vipin Bardia
RE: Deleting Custom role which has assigned users...
June 3, 2014 2:09 AM
Answer

Vipin Bardia

Rank: Regular Member

Posts: 106

Join Date: February 27, 2011

Recent Posts

Hi Vishnu,

If you want to provide a alert before deleting the role which has users or notify users that particular role is removed from portal,
then you have to override struts action and customize as per your need.

Regards.
Lokhande Vishnudas D.
RE: Deleting Custom role which has assigned users...
June 3, 2014 2:16 AM
Answer

Lokhande Vishnudas D.

Rank: Regular Member

Posts: 135

Join Date: May 27, 2013

Recent Posts

Ok ..

But why liferay is allowing to delete the role?
Pier Paolo Ramon
R: Deleting Custom role which has assigned users...
June 5, 2014 10:24 AM
Answer

Pier Paolo Ramon

Rank: Junior Member

Posts: 64

Join Date: May 25, 2010

Recent Posts

That's because Liferay Services in general do not prevent you to do ‘dumb’ things, if you have the required permission to do so. If this wasn't the case then it would be impossible to do certain things at all without access to a lower level, more direct, unchecked service.

Nonetheless it's a pity that we have to duplicate the behavior of the portal itself. There's no other way around it, IMHO. What is difficult to do is to gather the information about that specific action, which is scattered between JSPs, JS, and Java…

Sent from my iPhone with Liferay.com Forums