dbTalk Databases Forums  

Script with full access not working in user interface file

comp.databases.filemaker comp.databases.filemaker


Discuss Script with full access not working in user interface file in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christoph L. Kaufmann
 
Posts: n/a

Default Script with full access not working in user interface file - 06-19-2005 , 03:52 PM






Has anybody noticed this behavour in FMP 7.0v3:

- User is allowed to view and modifify all fields of a table, but not to
create or delete records -> Menu commands are greyed out

- A Script with full access will create a record

However:

- If I use a User Interface file and base a layout on the same table, a
script with full access will not create a new record, saying that user
lacks the privilege. It's the same user, and the privileges are the
same.

Is this a known bug?

Workaround: write a script in the data file, store the record ID in a
global, return to the user interface file, search for a global. And
something similiar for deletions. Not very elegant.

Better solutions?
--
http://clk.ch

Reply With Quote
  #2  
Old   
theduf
 
Posts: n/a

Default Re: Script with full access not working in user interface file - 06-20-2005 , 02:24 PM






It is more than likely the privilege set that is assigned to the user
you are logging in as. Go to File -> Define -> Accounts & Privileges
and then check out which priviledge set is assigned to the user you are
logging in as.


Reply With Quote
  #3  
Old   
Christoph L. Kaufmann
 
Posts: n/a

Default Re: Script with full access not working in user interface file - 06-20-2005 , 02:42 PM



theduf <theduf (AT) adelphia (DOT) net> wrote:

Quote:
It is more than likely the privilege set that is assigned to the user
you are logging in as. Go to File -> Define -> Accounts & Privileges
and then check out which priviledge set is assigned to the user you are
logging in as.
The privilege set does indeed prevent the user from creating a record.
That's the whole idea. The menu items create record, dublicate record,
and delete record are greyed out.

However, a script running with full access power whould be able to do
anything. And it does in the data file, but not in the interface file.
Looks like a bug to me.
--
http://clk.ch


Reply With Quote
  #4  
Old   
42
 
Posts: n/a

Default Re: Script with full access not working in user interface file - 06-20-2005 , 03:35 PM



In article <1gyh5f7.1gba2jesiudfkN%clk (AT) freesurf (DOT) ch>, clk (AT) freesurf (DOT) ch
says...
Quote:
theduf <theduf (AT) adelphia (DOT) net> wrote:

It is more than likely the privilege set that is assigned to the user
you are logging in as. Go to File -> Define -> Accounts & Privileges
and then check out which priviledge set is assigned to the user you are
logging in as.

The privilege set does indeed prevent the user from creating a record.
That's the whole idea. The menu items create record, dublicate record,
and delete record are greyed out.

However, a script running with full access power whould be able to do
anything. And it does in the data file, but not in the interface file.
Looks like a bug to me.

Looks like a feature to me.

Lets say they allowed the behaviour you want:

A user with 'minimal' access to a data file, but power user access (the
ability to write scripts) in a UI file would be able to exceed his
authority in the minimal access file.

I can think of countless solutions where I -want- to give users the
power to build their own reports (ie give them access to script maker
and layout tools) -- that's one of the "Filemaker Advantages". But of
course you dont want to hand them the keys to the entire system.

Even more frightening is the potential for someone who knows minimal
access creditials to your system to create a file, add a file reference
using those minimal access credentials, and then write scripts with full
access.

Yep... definately a feature.





Reply With Quote
  #5  
Old   
Christoph L. Kaufmann
 
Posts: n/a

Default Re: Script with full access not working in user interface file - 06-21-2005 , 12:28 AM



42 <nospam (AT) nospam (DOT) com> wrote:

Quote:
A user with 'minimal' access to a data file, but power user access (the
ability to write scripts) in a UI file would be able to exceed his
authority in the minimal access file.
That's not my situation. I'm afraid my English is not good enough, so I
failed to describe the problem properly.

The user's privilege is minimal everywhere. In particular, he is not
allowed to create records or to edit or write scripts.

Records should be created by scripts only (for various reasons). So I
write a script

Go to browse mode
Go to layout x
Create New Record

and I mark that script for running with full access (the new FMP 7
feature).

Effect: the scripts creates a new record, even if the user is not
allowed to do that.

Works in the data file, but not in the interface file.
--
http://clk.ch


Reply With Quote
  #6  
Old   
42
 
Posts: n/a

Default Re: Script with full access not working in user interface file - 06-21-2005 , 11:55 AM



In article <1gyhwaa.gsibb01nd1mngN%clk (AT) freesurf (DOT) ch>, clk (AT) freesurf (DOT) ch
says...
Quote:
42 <nospam (AT) nospam (DOT) com> wrote:

A user with 'minimal' access to a data file, but power user access (the
ability to write scripts) in a UI file would be able to exceed his
authority in the minimal access file.

That's not my situation. I'm afraid my English is not good enough, so I
failed to describe the problem properly.

The user's privilege is minimal everywhere. In particular, he is not
allowed to create records or to edit or write scripts.
Yes I understood that. My comments were a 'what-if'. Clearly it makes no
sense to lock down scripts -less- when the user has MORE privileges.
So if you can't trust scripts on a 'power user' priviledge level, you
certainly aren't going to trust them on a 'restricted user' level.

Quote:
Records should be created by scripts only (for various reasons). So I
write a script

Go to browse mode
Go to layout x
Create New Record

and I mark that script for running with full access (the new FMP 7
feature).
Quite right.

Quote:
Effect: the scripts creates a new record, even if the user is not
allowed to do that.
Quite right.

Quote:
Works in the data file, but not in the interface file.
Quite right.

Files are independant on some level. If you have a script in the data
file and you mark it full access. That file trusts that script because
the person who marked it full access has full access to that file.

However the data-file has no way of knowing whether the person who
defined the script in the INTERFACE file and marked it full access in
the INTERFACE file has any right to exceed their authority in the DATA
file.

So a script with full access in the interface file cannot be allowed to
exceed the users priviledge level in the data file.

To simulate your exact situation:

1) I have minimal access credentials to the data file.

2) I create a new file, add a file reference to the data file, create a
table occurence of the data table, and write a script to delete all
records in the data file. I mark this script full access, because I have
full access over this new file.

3) I create a user account with restricted priviledges.

4) I log into my new file as a RESTRICTED user. I run my 'full access'
script.

According to your model, my script should run and destroy the data file,
and its a bug if it doesn't.

Clearly that is a very bad model, ANYONE, including people who have only
minimal access to the data file could set this little fiasco up.

Fortunately this isn't the case, and Filemaker files correctly do NOT
trust 'full access' scripts in an external file.

-regards






Reply With Quote
  #7  
Old   
42
 
Posts: n/a

Default Re: Script with full access not working in user interface file - 06-21-2005 , 12:20 PM



In article <MPG.1d21e64ca2e0838e989b94@shawnews>, nospam (AT) nospam (DOT) com
says...
Quote:
In article <1gyhwaa.gsibb01nd1mngN%clk (AT) freesurf (DOT) ch>, clk (AT) freesurf (DOT) ch
says...
42 <nospam (AT) nospam (DOT) com> wrote:

A user with 'minimal' access to a data file, but power user access (the
ability to write scripts) in a UI file would be able to exceed his
authority in the minimal access file.

That's not my situation. I'm afraid my English is not good enough, so I
failed to describe the problem properly.

The user's privilege is minimal everywhere. In particular, he is not
allowed to create records or to edit or write scripts.

Yes I understood that. My comments were a 'what-if'. Clearly it makes no
sense to lock down scripts -less- when the user has MORE privileges.
So if you can't trust scripts on a 'power user' priviledge level, you
certainly aren't going to trust them on a 'restricted user' level.

Records should be created by scripts only (for various reasons). So I
write a script

Go to browse mode
Go to layout x
Create New Record

and I mark that script for running with full access (the new FMP 7
feature).

Quite right.

Effect: the scripts creates a new record, even if the user is not
allowed to do that.

Quite right.

Works in the data file, but not in the interface file.

Quite right.
To really drive the point home: the data file has no way of knowing that
the PERSON who made the script full access in the INTERFACE file has
full access to the DATA file.

From the data files point of view practically -anyone- could have given
the script in the interface file full access.

It can't know, so it can't trust.


Reply With Quote
  #8  
Old   
Christoph L. Kaufmann
 
Posts: n/a

Default Re: Script with full access not working in user interface file - 06-22-2005 , 12:16 AM



42 <nospam (AT) nospam (DOT) com> wrote:

Quote:
To really drive the point home: the data file has no way of knowing that
the PERSON who made the script full access in the INTERFACE file has
full access to the DATA file.

From the data files point of view practically -anyone- could have given
the script in the interface file full access.

It can't know, so it can't trust.
Sounds solid to me, thank you. Another drawback of data separation.

Now I'm struggling between the two script approach and menu limitation.
--
http://clk.ch


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.