cancel
Showing results for 
Search instead for 
Did you mean: 

Folder and content permissions

mikhailponomare
Champ in-the-making
Champ in-the-making
Hi,
I'm newbie in alfresco
It is possible to create a role which would allow only to create content (cm:content) and don't create folder (cm:folder), I mean via editing permissionDefinitions.xml ?
User will work in Share
2 REPLIES 2

croc
Champ in-the-making
Champ in-the-making
Hi,

I am not sure if you only need to use permissions to solve that. But if you want to then you'll need to create a new Permission to handle that, if not.
You can hide the New Folder by editing toolbar.lib.ftl
and you put <#if !user.isAdmin> and it's closing tag, where they create that button.
Check the code below. you can also edit it to suit your need, because this one will only show it to users with admin rights.

<#if !user.isAdmin>
      <div class="hideable toolbar-hidden DocListTree" style="display: none;">
            <div class="new-folder"><button id="${args.htmlid}-newFolder-button" name="newFolder">${msg("button.new-folder")}</button></div>
            <div class="separator"> </div>
     </div>
</#if>

Hope this helps.

Regards,
Croc

sjoerdjump
Champ in-the-making
Champ in-the-making
Is there a similair solution to hiding folders in a specific site?

I have 2 groups of users, lets say: GROUP_A and GROUP_B
Both have acces rights to Site_A
In Site_A is FOLDER_A and FOLDER_B

Can i give GROUP_A acces to FOLDER_A and not FOLDER_B? And vice versa?

Thanks!