ReJump


Chapter 12:: Manual:: ReJump DataFile
Technology



 


Home

Datafile
About
News
Manual
<...
Chapt.12
...>
Download
Contacts








Access to objects

Data could be common and confidential. There are realized the following rights of access to folders: "read", "write" and "master". They are used to delimit rights to editing data on the site.

The owners of the following rughts have special privileges. You can see it in the following table
RightAbility
readObject reading, link getting
writeObject reading, link reading. Object editing, link adding and deleting
masterObject reading, link reading. Object editing, link adding and deleting
Object deleting
Rights of access "read", "write", "master" to the object setting

How to set the rights?

You can set rights using "addLink" function in script
Example:
addLink(data-guestbook-1--mes, write, data-guestbook-admin);
In the example object "data-guestbook-admin" would get rights to object "data-guestbook-1--mes" writing.
To execute "addLink" operation and set the rights you need to have right "master" on the object "data-guestbook-1--mes", or you can do it during object creation.
Example:
add_mes=add(data-guestbook,mes);
addLink(add_mes,write,data-guestbook-admin);

You can set all necessary parameters to the object during it creation using add() function, including "read", "write" and "master:.

Attention! You can create special file ".add" (its contents doesn't matter) in the folder. Put it in the folder and everybody get right to file creating, but not to already existed editing. Add file and write necessary links to it in the same script. After that do what you want with it. Folder's owner can delete it if it would be necessary.

If you don't create rights on file file requests rights to writing, reading and ownership from higher folder. If it has no rights file requests rights more higher folder. That feature allows to create subfolders with identical rights. Note, objetcdescribed in "rejump_df.conf" file as "$ADMIN" has absolute interest in the folder.

Index
Download
Contacts
If you have any questions, please, contact us via email: datafile@rejump.com.


© 2002-2009 Алексей Мась, ReJump