view related records

Archived from the Xataface Users forum.

PolderBoy — Mon May 25, 2009 3:04 am

Hello All,

In my permissions.ini I have:

[Kantoor]

view = 1

edit = 0

list = 1

add new related record = 0

add existing related record = 0

remove related record = 0

delete related record = 0

view related records = 1

related records feed = 0

But in my related table there is a file upload.

And with the permission set to ‘view’ only it is still possible to upload and delete the file.

And the client doesn’t want the user [Kantoor] to be able to change the related field nor delete it, only view. (it’s a .wav file, so that would be hear the file)

He (the client) alone must be able to upload and delete the file. (user is called ‘Boss’)

Any ideas where and how I could tackle that problem?

Also I must say that this Xataface is truly perfect. I am learning everyday. And now I can say to my clients: “Yes I can”.

Polderboy.


shannah — Tue Jun 02, 2009 10:28 am

It’s hard to say without some more information. What does the getPermissions() method look like for your related table (the one with the file upload).


PolderBoy — Wed Jun 03, 2009 2:32 am

Thanks for the reply.

It means that I can have a folder with the name of the table?

Also a tablename.php file in that folder?

Even though it is a related table?

Ah I see now. So I could have user specific rights on an field?

Which would be handled by the GetPermission() function in the tablename.php

I have done that before but not on a related table.

Right that solves my problem (if all of the above is true)

Thanks, you sir are a God.

PolderBoy