<div class="mb cb"><div id="mb_0">Is there a way to set zope permissions for files that are linked to zope with file system directory view. For example, i have a
zope python script which must only be executed by users that have
manager role. In order to do this i think i have 2 alternatives:<br>
</div></div>

<br>

1- I can control the permission in the zope python script script<br>

<br>

user = getAuthenticatedUser() <br>

if(user has manager role):<br>

&nbsp; ....<br>

else:<br>

&nbsp; go to login<br>

<br>

2- I can put a special file like .metadata file and set the python script zope permissions. (I don't know how can i do this)<br>

<br>

Thanks,