Foren

How to hide some private pages from members but not administrators

thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
Hi,
I want to know how to hide some private pages from members but not administrators.

Thanks,
Sreejesh
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 72 Beitrittsdatum: 04.05.12 Neueste Beiträge
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
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 72 Beitrittsdatum: 04.05.12 Neueste Beiträge
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.
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 72 Beitrittsdatum: 04.05.12 Neueste Beiträge
Hi Sreejesh,

You have not mentioned any where How to hide private pages for an organization before your last message post.
thumbnail
Fehri Ahmed, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 50 Beitrittsdatum: 05.11.12 Neueste Beiträge
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
thumbnail
Jos Groenewegen, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

New Member Beiträge: 15 Beitrittsdatum: 16.10.12 Neueste Beiträge
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.
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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
thumbnail
Jos Groenewegen, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

New Member Beiträge: 15 Beitrittsdatum: 16.10.12 Neueste Beiträge
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.
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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
thumbnail
Jos Groenewegen, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

New Member Beiträge: 15 Beitrittsdatum: 16.10.12 Neueste Beiträge
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.
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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
thumbnail
Jos Groenewegen, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

New Member Beiträge: 15 Beitrittsdatum: 16.10.12 Neueste Beiträge
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)?
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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
thumbnail
Jos Groenewegen, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

New Member Beiträge: 15 Beitrittsdatum: 16.10.12 Neueste Beiträge
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).
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
Hi
I even removed the view permission for all the roles including owner.
Still it is visible.

PFA sceern shot.

Thanks
Sreejesh
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
Hi,

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

Thanks,
Sreejesh
thumbnail
Jos Groenewegen, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

New Member Beiträge: 15 Beitrittsdatum: 16.10.12 Neueste Beiträge
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).
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
Hi,

Please find the screen shots as well.

Thanks,
Sreejesh
thumbnail
Jos Groenewegen, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

New Member Beiträge: 15 Beitrittsdatum: 16.10.12 Neueste Beiträge
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..
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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
thumbnail
Sreejesh Pv, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

Junior Member Beiträge: 41 Beitrittsdatum: 27.11.12 Neueste Beiträge
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
thumbnail
Jos Groenewegen, geändert vor 11 Jahren.

RE: How to hide some private pages from members but not administrators

New Member Beiträge: 15 Beitrittsdatum: 16.10.12 Neueste Beiträge
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, geändert vor 10 Jahren.

RE: How to hide some private pages from members but not administrators

New Member Beiträge: 7 Beitrittsdatum: 22.07.13 Neueste Beiträge
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