Page 1 of 1

Permision on okm:trash folder

PostPosted:Thu Feb 14, 2013 3:44 pm
by averma
Hi,

I am using different groups then default "ROLE_USER" and "ROLE_ADMIN": say "TOOLS_USER" and "TOOLS_ADMIN".

I have taken following steps:
* Created new groups say: "TOOLS_USER" and "TOOLS_ADMIN".
* Created new users and assigned them "TOOLS_USER" and "TOOLS_ADMIN" groups accordingly.
* Changed the "default.admin.role" and "default.user.role" from admin panel.
* Changed following values in "applicationContext.xml" file.
Code: Select all
<beans:property name="rolePrefix" value="ROLE_"/>
to
<beans:property name="rolePrefix" value=""/>

<security:intercept-url pattern="/admin/**" access="ROLE_ADMIN" />
to
<security:intercept-url pattern="/admin/**" access="IS_AUTHENTICATED_FULLY" />
After all the changes I was able to login as new admin user (with new admin group) everything was fine.
but, when I try to login as a user (with new TOOLS_USER group) I got following error:
com.openkm.core.RepositoryException: PathNotFoundException: 682c4bbe-8bd8-4f65-87b2-1fd857fe1d1a : /okm:trash
I figured that It has something to do with permission because all folders had "ROLE_USER" permission.

I tried changing group permission for all the folders from "ROLE_USER" to "TOOLS_USER".
I could change permission for all the folders like "Taxonomy - okm:root", "Categories - okm:categories" etc but there is no option to change the permission on "Trash - okm:trash" folder.

Could you please help me to change the permission of Trash folder?
I am pretty sure that after this change everything will work.

Regards,
Adi

Re: Permision on okm:trash folder

PostPosted:Fri Feb 15, 2013 5:43 pm
by jllort
You can changed from administration -> database query (update role name to newer):
Code: Select all
SELECT * FROM OKM_NODE_ROLE_PERMISSION;

Re: Permision on okm:trash folder

PostPosted:Fri Feb 15, 2013 5:52 pm
by averma
Thanks jllort..

It really helped.
new groups are working fine now...great.