Fórum

[SOLVED] How to Create new Permissions ?

thumbnail
Daniel Breitner, modificado 15 Anos atrás.

[SOLVED] How to Create new Permissions ?

Regular Member Postagens: 105 Data de Entrada: 16/07/08 Postagens Recentes
Hi,

I´d like to add some new permisssions to soem of my users.
When I (in the enterprise admin portlet) click on organizations -> permissions ->available I see these permissions:

assign_members, delete, view etc.

How do I create a new one, so that I can select it in this list?
thumbnail
Jonatan Oyola, modificado 15 Anos atrás.

RE: How to Create new Permissions ?

Regular Member Postagens: 193 Data de Entrada: 06/06/07 Postagens Recentes
You can see:

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Using+Liferay%27s+Permission+System+from+a+portlet
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Permissioning+Explained
thumbnail
Daniel Breitner, modificado 15 Anos atrás.

RE: How to Create new Permissions ?th

Regular Member Postagens: 105 Data de Entrada: 16/07/08 Postagens Recentes
Hei - thanks for your answer, but I don´t think that this is what I am looking for.



I want to edit the permissions of users according a specific organization.

I know that I can do this in the enterprise portlet by cklicking on :

- organizations
- Actions -> Permissions (for one specific organization)
- Available
- Update Permissions


And now I want to edit this list ... is there any way of doing so ?

EDIT:


I found a file ... portal.xml (\portal 5.0.1\bin\resource-actions\portal.xml) that just contains what I want.


Does anybody know if I could use this ? ... And if yes ... how ???


With kind regards

Daniel
thumbnail
Ray Augé, modificado 15 Anos atrás.

Re: [Liferay Forums][2. Using Liferay] RE: How to Create new Permissions ?t

Liferay Legend Postagens: 1197 Data de Entrada: 08/02/05 Postagens Recentes
> And now I want to edit this list ... is there any way of doing so ?
>
> EDIT:
>
>
> I found a file ... portal.xml (\portal 5.0.1\bin\resource-actions
> \portal.xml) that just contains what I want.
>
>
> Does anybody know if I could use this ? ... And if yes ... how ???


Sure you can do this... BUT you will have to write the check against
this new custom ACTION.

For example, we have VIEW... we check all over the place for this
permission:

i.e.
	public Organization getOrganization(long organizationId)
		throws PortalException, SystemException {

		OrganizationPermissionUtil.check(
			getPermissionChecker(), organizationId, ActionKeys.VIEW);

		return organizationLocalService.getOrganization(organizationId);
	}


the problem is that if you add a new ACTION to that list... you will
also have to make the checks for it somewhere...

Now, if you're up for that... this is perfectly fine. The system is
designed to be extensible in this way, but it's assumed your going to
check those new permissions in either custom or modified code.

HTH!
thumbnail
Daniel Breitner, modificado 15 Anos atrás.

RE: Re: [Liferay Forums][2. Using Liferay] RE: How to Create new Permissio

Regular Member Postagens: 105 Data de Entrada: 16/07/08 Postagens Recentes
Sorry, if I seem stupid, but I don´t understand.

How do I extend this list ? Is it a config file ? Or a database entry ?
thumbnail
Daniel Breitner, modificado 15 Anos atrás.

RE: Re: [Liferay Forums][2. Using Liferay] RE: How to Create new Permissio

Regular Member Postagens: 105 Data de Entrada: 16/07/08 Postagens Recentes
Is there anyone who could help me ?

All I want is to extend the list of available permission for users.

I see Delete, Update, etc. and now I want to extend it by myPermission.
Who know how to update this list?
thumbnail
Daniel Breitner, modificado 15 Anos atrás.

RE: Re: [Liferay Forums][2. Using Liferay] RE: How to Create new Permissio

Regular Member Postagens: 105 Data de Entrada: 16/07/08 Postagens Recentes
I found it.

All permissions, as they appear in the enterprise admin are stored within the portal.xml, that is within the portal-impl.jar file.
This file is within ROOT.war\WEB-INF\lib.
vikas suresh thakre, modificado 14 Anos atrás.

RE: Re: [Liferay Forums][2. Using Liferay] RE: How to Create new Permissio

Junior Member Postagens: 97 Data de Entrada: 18/05/09 Postagens Recentes
Hay daniel that's fine, when we want to create the permission for the existing portlet.
But how to create the permission for the costum portlet?
is there any xml file in the ext enviornment for the recource action mapping?

any help here is really appricable