Forums

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

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
How to hide some private pages from members but not administrators Sreejesh Pv January 29, 2013 10:19 PM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 29, 2013 10:20 PM
RE: How to hide some private pages from members but not administrators Ketan Patel January 29, 2013 10:42 PM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 29, 2013 10:47 PM
RE: How to hide some private pages from members but not administrators Ketan Patel January 29, 2013 11:21 PM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 29, 2013 11:26 PM
RE: How to hide some private pages from members but not administrators Ketan Patel January 30, 2013 1:17 AM
RE: How to hide some private pages from members but not administrators Ahmed Fehri January 31, 2013 2:16 AM
RE: How to hide some private pages from members but not administrators Jos Groenewegen January 31, 2013 2:32 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 3:09 AM
RE: How to hide some private pages from members but not administrators Jos Groenewegen January 31, 2013 3:20 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 3:31 AM
RE: How to hide some private pages from members but not administrators Jos Groenewegen January 31, 2013 3:41 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 3:46 AM
RE: How to hide some private pages from members but not administrators Jos Groenewegen January 31, 2013 4:12 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 4:22 AM
RE: How to hide some private pages from members but not administrators Jos Groenewegen January 31, 2013 4:36 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 4:40 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 4:43 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 4:52 AM
RE: How to hide some private pages from members but not administrators Jos Groenewegen January 31, 2013 4:53 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 4:57 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 5:12 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 5:16 AM
RE: How to hide some private pages from members but not administrators Jos Groenewegen January 31, 2013 5:22 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 5:29 AM
RE: How to hide some private pages from members but not administrators Sreejesh Pv January 31, 2013 5:33 AM
RE: How to hide some private pages from members but not administrators Jos Groenewegen January 31, 2013 6:24 AM
RE: How to hide some private pages from members but not administrators Dominic Valencia July 22, 2013 4:52 AM
Sreejesh Pv
How to hide some private pages from members but not administrators
January 29, 2013 10:19 PM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi,
I want to know how to hide some private pages from members but not administrators.

Thanks,
Sreejesh
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 29, 2013 10:20 PM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

I tried to hide the Private Page as Follows

Go To Manage-->Page-->"My Page" --> Permission

And I set the permission

But still it is visible for all the users.

Thanks,
Sreejesh
Ketan Patel
RE: How to hide some private pages from members but not administrators
January 29, 2013 10:42 PM
Answer

Ketan Patel

Rank: Junior Member

Posts: 70

Join Date: May 4, 2012

Recent Posts

Hi Sreejesh,

And I set the permission


Which permission you have set?

From dockbar click on Manage -->Page-->"Your Page"-->Permission.

Remove the view permission of Guest User and save. It's work for me.

Thanks,
Ketan
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 29, 2013 10:47 PM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

From dockbar click on Manage -->Page-->"Your Page"-->Permission.

Remove the view permission . I did the same , and its working for Public Pages.
But in the Private Pages there is no role called Guest and I dont want other Roles to access my page.
Same configuration not working for Private Page.

Thanks,
Sreejesh
Ketan Patel
RE: How to hide some private pages from members but not administrators
January 29, 2013 11:21 PM
Answer

Ketan Patel

Rank: Junior Member

Posts: 70

Join Date: May 4, 2012

Recent Posts

Hi Sreejesh,

Private pages are only accessible to owner user and admin user.

No one else can able to check that pages.

Let me know if you have any confusion.
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 29, 2013 11:26 PM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi,

That is not correct.
In an Organization , the private Pages can be visible to all Organizational users.
But I don't want all the "My Pages" to be displayed to all Organizational users. I want to restrict based on roles. It is not working in private page. But it is working in Public Page.

For eg:
I have a Private page as follows

Home--About US--Parent Corner--Student Corner--Contact Us.

I dont want an Organizational user with Role Student to view the Parent Corner Page.

If I configure the same thing in Public Page it is working. But I want this facility in Private Page also

Thanks,
Sreejesh
Ketan Patel
RE: How to hide some private pages from members but not administrators
January 30, 2013 1:17 AM
Answer

Ketan Patel

Rank: Junior Member

Posts: 70

Join Date: May 4, 2012

Recent Posts

Hi Sreejesh,

You have not mentioned any where How to hide private pages for an organization before your last message post.
Ahmed Fehri
RE: How to hide some private pages from members but not administrators
January 31, 2013 2:16 AM
Answer

Ahmed Fehri

Rank: Junior Member

Posts: 43

Join Date: November 4, 2012

Recent Posts

Hi Sreejesh Pv,

So why you would use private page and not public page? I think that it is better to go through public page and just trying to set permissions
Jos Groenewegen
RE: How to hide some private pages from members but not administrators
January 31, 2013 2:32 AM
Answer

Jos Groenewegen

Rank: New Member

Posts: 15

Join Date: October 16, 2012

Recent Posts

Hello Sreejesh Pv,

If I understand your question correctly you want the private pages (within a site) to only be visible for certain roles, try the following;

Control panel
Go to the Site the pages are on
Go to Site pages
Go to private pages
Select the page you want to set the permissions for
Hit "Permissions"
Ensure permissions are set as follows ; "Owner" should have all permissions (that'll be you / the administrator), for every other role including user and site member remove all permissions. The page should now only be visible / accessible to you as the owner (while remaining a private page).
If you want the page visible for some users make a role say "Parent" and give that role "Parent" certain permissions (like the "View" permission) and ensure everyone that has to view the page (other then the admin, who gets the visibility from his role as owner), has the role of parent.
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 3:09 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

HI Jos Groenewegen,
I want the private pages (within an organization) to only be visible for certain roles, try the following;
I tried that but it is not working for Private Page.
It is working for public page.

Thanks,
Sreejesh
Jos Groenewegen
RE: How to hide some private pages from members but not administrators
January 31, 2013 3:20 AM
Answer

Jos Groenewegen

Rank: New Member

Posts: 15

Join Date: October 16, 2012

Recent Posts

Strange, we've set it up according to the exact steps I just described and the pages within the site are limited, view wise, only to the specific roles that we grant access.

A few things to double check,

Have you removed the "View"permission for the roles? The reason I ask is that it's the rightmost permission you can grant a role (and it's by default set for the site member role) and in some browsers (such as chrome) you don't see the "View" permission or that there is a scrollbar to go right. You have to actually expand the window (using the "expand" drag and drop in the bottom right corner) to see that there are more permissions to, in this case, take away.

If that's not the case does the user you're trying to test with have any liferay wide or organization specific "extra" roles, such as Administrator, Organization Owner (or Administrator) etc ? As those might also allow the user to inherit some rights not associated with any role they have.
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 3:31 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Dear Jos Groenewegen,

I removed all the permission to all the users including the owner.
still it is visible , I think according to liferay private pages are visible to Organization users.

While creating user also I removed all the roles and assigned only custom roles.

But strange thing is that the same configuration set up is working fine for me as well in the Public Page.

Thanks,
Sreejesh
Jos Groenewegen
RE: How to hide some private pages from members but not administrators
January 31, 2013 3:41 AM
Answer

Jos Groenewegen

Rank: New Member

Posts: 15

Join Date: October 16, 2012

Recent Posts

Hallo Sreejesh,

Are you using the "Organization" public / private page or have you made a seperate site of which the organization (and thus all its members) is a member.

I'd recommend using a seperate site and making the organization a member. This allows more flexibility in quickly adding pages (multiple public / private pages etc)

Because that might be where our set-ups differ;

-Create a seperate site (Under Portal -> Sites) naming it say "test"
-> To this site add the organization as a member (Sites -> Actions behind that site -> Manage memberships -> Add members -> Organization -> Add the organization you want).

Now select the site you just created in the side menu. Under "Site pages" you can add multiple public (or private) pages and set the permissions per private page. As said this is the set-up we're using without any difficulties.
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 3:46 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Dear Jos Groenewegen,

Separate site will work.I solved my issue by creating a separate blank site and applying my template.
But I need that in an Organization way, so that Organization Role can manage Pages, now I am managing with site Roles.

Thanks,
Sreejesh
Jos Groenewegen
RE: How to hide some private pages from members but not administrators
January 31, 2013 4:12 AM
Answer

Jos Groenewegen

Rank: New Member

Posts: 15

Join Date: October 16, 2012

Recent Posts

Do you just want the organization way for the grouping of users or actually for the hierarchical structure and inheritance of permissions?

Because if it is merely for the grouping of users you could use the user groups and assign (site) roles to the usergroups.

Although, doing the following, private site pages are hidden for my organization users (liferay 6.1);

-Create an organization (in my case called test-organization)
-Give this Organization its own organization site.
-Under the organizations site go to private pages and remove the permisions for the page (for site member)
-The page is now not accessible to the organization members, but can be accessed by me as an admin.

I'm still curious why this doesn't seem to be working for you... You do select the organization's site in the dropdown menu on the left (where you also select sites)?
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 4:22 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi,

-Under the organizations site go to private pages and remove the permisions for the page (for site member)
-The page is now not accessible to the site members, but can be accessed by me as an admin.

The above will work.

What I have done is as follows
1) I created an Organization.
2) Created one public website and one private intranet site.
3) I created Organizational users.
4) I set permission for Organizational Public pages as well as Private Pages
5) I found that permission is working for public pages where as its not working for private pages.

Thanks,
Sreejesh
Jos Groenewegen
RE: How to hide some private pages from members but not administrators
January 31, 2013 4:36 AM
Answer

Jos Groenewegen

Rank: New Member

Posts: 15

Join Date: October 16, 2012

Recent Posts

Hello Sreejesh,

But if it's the organizational site (i.e, the private site of the organization) isn't that exactly what you want.

See the screenshot here: (a bit wide to put into the post) as an example of exactly what I mean. It's a rather wide screenshot so apologies for killing the screenwidth...

But on the left you can see what an organization member (and test-user) sees. On the right you can see the pages that are a part of the organization site.

As you can see the page "test1" does exist but is not visible to the test-user (as he does not have the proper organization role).
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 4:40 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi,

Thanks for the detailed explanation with picture.
This is what I want.
I dont know why this is not working for me in the private page.
Thanks,
Sreejesh
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 4:43 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi
I even removed the view permission for all the roles including owner.
Still it is visible.

PFA sceern shot.

Thanks
Sreejesh
Attachment

Attachment

Attachments: screen2.png (176.9k), sreen1.png (211.4k)
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 4:52 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi,

Even if I unchecked all, from the Page Permission its still visible.
By the way how did you achieve that.

Thanks,
Sreejesh
Jos Groenewegen
RE: How to hide some private pages from members but not administrators
January 31, 2013 4:53 AM
Answer

Jos Groenewegen

Rank: New Member

Posts: 15

Join Date: October 16, 2012

Recent Posts

Looking at the screenshots it seems your test test user is some kind of administrator is he not? He seems at least able to modify the organisation site's permissions in the control panel. Likely he's getting the access due to that (as a sort of "super user" / admin user).

Try creating a new user without any administrator purposes and adding him to the organization. I suspect he won't be able to view the message board page. (As you can see in my screenshot I have different users viewing the page and viewing the control panel).
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 4:57 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi,

Test Test is Org Admin
I logged in with a different user and tested.
Still it is visible.
Let me create a new Test Organization and test it again.

Thanks,
Sreejesh
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 5:12 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi,

Right now I created an Organization named Test
Under that I created another sub Organization named OrgA
Created a private intranet site for OrgA
created two two custom Organizational Roles .
created two users for OrgA.
Set the permission for a page, so that its viewable for only for TestRole2

But when a user log in with a different Role named TestRole he is able to view that page.

Please correct me if my set up is different from yours

Thanks,
Sreejesh
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 5:16 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi,

Please find the screen shots as well.

Thanks,
Sreejesh
Attachment

Attachment

Attachment

Attachments: screentest2.png (138.0k), screentest3.png (207.1k), sreentest1.png (198.2k)
Jos Groenewegen
RE: How to hide some private pages from members but not administrators
January 31, 2013 5:22 AM
Answer

Jos Groenewegen

Rank: New Member

Posts: 15

Join Date: October 16, 2012

Recent Posts

Having done exactly what you did I'm still getting the desired / right result here it seems, a few questions to double check;

You've removed the rights per page (within the site), including for the "Site Member" user all the way at the bottom? (The organizational users automatically become site members too).

The users you've made a part of the OrgA are not also a part of the organization Test?

The users you've made do not have any roles other then role testrole and testrole2 and organization user? (I.e, no liferay wide Organization administrator roles or anything).

Because as far as I can hear right now the setups should be similar, so I'm guessing there's some inherited role or page permission not removed somewhere after all..
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 5:29 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Hi,

"Site Member" and all others are removed.
The users you've made a part of the OrgA are not also a part of the organization Test?
Test is the Parent Organization where as OrgA is sub organization of Test.
The users you've made do not have any roles other then role testrole and testrole2 and organization user? (I.e, no liferay wide Organization administrator roles or anything).

Answer is No.

From the screen shot itself you can understand that there only one Role assigned to that user.

Thanks,
Sreejesh
Sreejesh Pv
RE: How to hide some private pages from members but not administrators
January 31, 2013 5:33 AM
Answer

Sreejesh Pv

Rank: Junior Member

Posts: 41

Join Date: November 27, 2012

Recent Posts

Dear,

Thanks for your time and help.
Dont know whether I missed some thing .
But for public pages the same setting is working fine.

Thanks,
Sreejesh
Jos Groenewegen
RE: How to hide some private pages from members but not administrators
January 31, 2013 6:24 AM
Answer

Jos Groenewegen

Rank: New Member

Posts: 15

Join Date: October 16, 2012

Recent Posts

Aye, sorry I couldn't help you to an actual solution emoticon. No idea what's different about your set-up then ours (as you can see it works for us with the settings you are, likely, exactly using for private pages as well).
Dominic Valencia
RE: How to hide some private pages from members but not administrators
July 22, 2013 4:52 AM
Answer

Dominic Valencia

Rank: New Member

Posts: 7

Join Date: July 22, 2013

Recent Posts

HI,

I'm facing the same problem. here's the issue.

I created a top level organisation (parent)
I created a child organization and created a site for this.
created private pages for this site, Dashboard, Writing, Topics, Scoring matrix, Reports
created a site role named Teacher
assign a user on this site and I assign the site role I just created(teacher) and I also assign another user to this site but without site role(student)
I assign permissions on the pages that will be displayed for the teacher, (Dashboard, Topics, Reports). I unchecked all permission except for the owner and I checked the VIEW permision for the teacher role.

Expected behaviour:
teacher should only see pages - Dashboard, topics, reports
student should only see pages - dashboard, writing, scoring and scoring matrix

actual behaviour:
student see pages: dashboard, writing and scoring matrix
teacher see all pages, dashboard, writing,topics, scoring matrix and reports.


Any ideas? please help...

Dominic