cancel
Showing results for 
Search instead for 
Did you mean: 

Disable copy paste options for specified ROLES.

jeyaa
Champ in-the-making
Champ in-the-making
Hi all,
I have two questions.
1. I want to give permissions to the users of specified roles such a way that he could not copy and paste it into another space. So how could I do that ?
2. Now I am working by extending Alfresco 3.2 sdk. How could I extend permissionDefinition.xml file in that.

Please lemme know if you found this question abstract. Will give you in detail.

Thanks.
2 REPLIES 2

hap234
Champ in-the-making
Champ in-the-making
Need to do following changes into permissionDefinitions.xml” file.
1)Define one PermissionGroupTag as following

<permissionGroup name="CustomRole" expose="true" allowFullControl="false">
<includePermissionGroup permissionGroup="Editor" type="cm:cmobject" />
<includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" />
    </permissionGroup>

Name attributes you can set with the name that you want to give for your custom role.

Above Created CustomRole having permission of Editor and contribtor, same way you can add more or less.

2)Add below line in PermissionSet tag of type="cm:cmobject"
<permissionGroup name="CustomRole" allowFullControl="true" expose="true" />

3) Add below line in PermissionSet tag of type="cm:content" 
<permissionGroup name="CustomRole" extends="true" expose="true" />

4) Add following properties into webclient.properties file of alfresco
Key -> The name you have given for permissionGroup (i.e. CustomRole)
Value -> Which you want to display in web-client of alfresco.

Above example shows custom role which includes both Editor & contributor permission.
You can have your own custom role by adding set of existing roles in new permission group, as shown above.

Hope this help.

Best Regards,
Hetal Patel

jeyaa
Champ in-the-making
Champ in-the-making
Thanks Hetal,
I have created as you've said, but am not able to give permissions to modify cut/paste/copy. And also, If i have a user of role consumer, he should only be able read, but he can create content/space. I also want to get rid of that. Wat should I suppose to do?

Thanks,
Jeya Smiley Happy