view related records

A place for users and developers of the Xataface to discuss and receive support.

view related records

Postby 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.
PolderBoy
 
Posts: 72
Joined: Fri Apr 03, 2009 12:53 am

Postby 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).
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Thanks

Postby 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
PolderBoy
 
Posts: 72
Joined: Fri Apr 03, 2009 12:53 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 28 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved