Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
Nisarg Parikh
Show Hide specific folder according to Role/Group
29. März 2012 05:46
Antwort

Nisarg Parikh

Rang: Regular Member

Nachrichten: 244

Eintrittsdatum: 30. Dezember 2009

Neue Beiträge

Hi All,

I am using Liferay 6.1 CE

I have few users. Some of them are from USA and some of them are from UK.

I have document & media portlet in which I have folder for USA and another folder for UK.

Now I want in such a way that if USA user is logged in he will not be able to see UK folder and vice versa.

How can I achieve that?

Please help me.

Thanks in Advance.

-Nisarg
Nisarg Parikh
RE: Show Hide specific folder according to Role/Group
2. April 2012 02:12
Antwort

Nisarg Parikh

Rang: Regular Member

Nachrichten: 244

Eintrittsdatum: 30. Dezember 2009

Neue Beiträge

Anyone from Liferay team?

Please help me.

Thank you.

-Nisarg
Tejas Kanani
RE: Show Hide specific folder according to Role/Group
2. April 2012 05:23
Antwort

Tejas Kanani

Rang: Liferay Master

Nachrichten: 551

Eintrittsdatum: 6. Januar 2009

Neue Beiträge

Have you tried by giving Folder Level permission to pre-defined Role (USA & UK)?
Nisarg Parikh
RE: Show Hide specific folder according to Role/Group
2. April 2012 05:49
Antwort

Nisarg Parikh

Rang: Regular Member

Nachrichten: 244

Eintrittsdatum: 30. Dezember 2009

Neue Beiträge

Yes but its not working.
I have created teams within organization and my purpose is solved. I mean user can see the folder but while clicking on it, it will give permission error.

But real problem is like when there is another region folder added i.e. APAC, or any other subfolder then admin again has to set permission manually.

I do not want that. It should be done via configuration only if possible.

One thing I am thinking of like adding permissions programmatically.

Any suggestion?

Thank you.

-Nisarg
Dhrutika Vyas
RE: Show Hide specific folder according to Role/Group
2. April 2012 05:49
Antwort

Dhrutika Vyas

Rang: Expert

Nachrichten: 332

Eintrittsdatum: 9. Februar 2009

Neue Beiträge

Hi Nisarg,

Create two different roles of type Regular.
Create two folders and click on permissions.
For US folder-> check view permission for us role and remove all checks other than owner.
For UK folder-> check view permission for uk role and remove all checks other than owner.

Now assign us role to some user,so that user will able to see US folder only.

Regards,
Dhrutika
Tejas Kanani
RE: Show Hide specific folder according to Role/Group
2. April 2012 06:02
Antwort

Tejas Kanani

Rang: Liferay Master

Nachrichten: 551

Eintrittsdatum: 6. Januar 2009

Neue Beiträge

Hi Nisarg,

Yes. For root level folder, each time when you create new folder(region), you'll have to assign relative permission on it once.
But If you have less frequency of creating new (region) folder then assigning permission one time is not too much time consuming.

And if you want it to managed if without human intervention, then yes, you'll have to write code for that.