cancel
Showing results for 
Search instead for 
Did you mean: 

How to check permission for creating nodes

plaico
Champ in-the-making
Champ in-the-making
Hi,
I have another question: How can I check if the user is allowed to create a new node in the directory (parent node)? I found a function called hasPermission in the Wiki, but I cannot find this function in my Node.php - file where it should be. (I downloaded the library last week)
What can I do?

(The next thing would be that there is also a removeChild-function, but unfortunately, the function is empty)
2 REPLIES 2

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

As you aware there are two implementations of the PHP API, the native PHP one (that you are using) and the Java implemented on embedded in the Alfresco repository.

Both have exactly the same API, but the PHP implementation is slightly behind its Java counterpart.  To this end there are a small handfull of functions documented in the API that are not currently implemented in the PHP library.

Unfortunatly this perticular function is an example of one such function.  The documentation in the Wiki really needs to indicate where each of the functions has been implemented so it is easier for developers to keep track of what has been done.

In the short term i suggest raising this in jira as a bug http://issues.alfresco.org and we will try to fill this implementation in the 2.1 timeframe.

Cheers,
Roy

plaico
Champ in-the-making
Champ in-the-making
Thanks for the quick response. I will have a look at the java-code and maybe try to write it in php.