I want a message board thread by default visible for a role. No need to set permission each time thread is posted.
Finally I got the solution by myself. All you have to do is create a Role and assign relevant users to that role. After this just add the required permission under " Define Permissions". then go for "Add Portlet Permission". Here, I have selected "Message Board" and given the required permission under it. I hope this will help any newbie to liferay. :)
When i was working on liferay portal community edition. i did this using private page for each group.
There are two type of page for user
1)Public pages
2)Private pages
I didn't found any other option for setting privileges for user.
I am sory, i can't tell you the exact name because worked an year ago.
Related
We used to have a plugin in LR6 that used a specific user group, which also had the administrator role assigned to it, for several use cases.
However, when trying to replicate its logic on LR7, this plugin correctly imported the users from a remote data source and put the users into this group. I can see their profile, which seems to be exactly what we need: in the "Inherited Regular Roles" the Administrator role is present.
However, they cannot see the control panel.
In an experiment, I administratively created a user group and assigned the Administrator role to the group. same behavior here, they cannot see anything.
I am poking around the source code, and it seems some parts of the module do use:
PortalPermissionUtil.contains(
permissionChecker, ActionKeys.VIEW_CONTROL_PANEL)
Which seems to verify inherited roles... Am I missing anything?
Bottom line, it seems that I cannot create usergroups of administrators anymore.
It turns out, yes I was missing something: a bug
https://issues.liferay.com/browse/LPS-61319
So, this will be an issue till GA4 at least.
So we want to set up a "default" private page layout for a user's private page with some portlets there by default. The issues is, not every user will have permission to view some of the default portlets. I took all of the permissions away from a portlet and it looks like it takes it away from the "Add" list, but if the portlet is already on the page, the user can still see it whether they have permission or not. Is there a way to fix this? As I understand it, a user is an administrator of their site by default, so we may be looking at this the wrong way. Any help would be greatly appreciated.
HereĀ“s my question: Is there a simple way to configure liferay so that newly created JournalArticles get a certain permission (like : "All new articles are not viewable by guests" or "All new articles are viewable by guests") ?
Thanks for your efforts !!
Daniel
When you create a new journal article under permissions you will be seeing view able by option.
You can give permission there for particular article.
Is your expectation is to give permission one time common for all articles?So that whenever you create it will not be viewed by guest.
Can you please tell whether it will be viewed by guest in future.For ex:After some approval process through workflow.
I'm currently working on a Liferay project and want to get rid of the My Pages and My Submissions menu items on the right side so that users of my site do not bother with them. Tried looking for the jsp that renders the left side menu, but could manage to remove the item from there. Any ideas how to proceed? Thanks!!!
You could add the following lines to your portal-ext.properties (usually found in webapps/ROOT/WEB-INF/classes under tomcat):
#deactivate Personal Community with *private* pages
layout.user.private.layouts.enabled=false
#deactivate Personal Community with *public* pages
layout.user.public.layouts.enabled=false
#hide Personal Community from my places
my.places.show.community.private.sites.with.no.layouts=false
and restart the server.
Recently I had the same task assigned. Fortunately removing this items from the menu is quite straightforward since the control panel is nothing more than a special layout for displaying portlets that are deployed in the portal server. You can read my blog post here to check the simple steps on how to customize the Control Panel and My Account portlet.
http://liferay.bdedov.eu/2012/02/clean-up-control-panel-from-unnecessary.html
You probably rather want to limit the permissions to people. Don't give out global administration roles, but create your own roles, "Define Permissions" for them as you need them and leave out the permissions that you don't want to provide to your users - e.g. "access in control panel" or the general permission to add a page.
Otherwise you'll miss other ways to use the interface and still allow them to add pages through other means (e.g. "Manage/Page").
Edit: The easiest way to get rid of "My Submissions" is to undeploy the workflow plugin (kaleo-web) - of course you can only do this if you don't need workflow.
Hi I am little new to SharePoint. Here is my question
How can we make different views for administrator VS logged in user. For instance I need to display the
quicklaunch only to admin and not for user. And user should not see site actions tab.
How can we set this. Please can anyone come up with solution or any blog that we can refer?
Thanks in advance.
This blog will help with code identifying whether a user is an admin (or even just owner) http://blogs.tamtam.nl/duarte/2008/12/09/Sharepoint+How+To+Verify+If+A+User+Is+Site+Administrator.aspx
You can then create a control that uses this condition to display or hide content. See my blog here for an example: http://jcapka.blogspot.com/2009/02/handy-hiding-panel.html
You can also use the built in SPSecurityTrimmedControl but it does not provide a means of explicitly checking if a user is an administrator.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spsecuritytrimmedcontrol.aspx