Jump to content

Login Restrict


This topic is 5965 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Ok I have a nice login script now...

However I would like to do a seacrch on login to return only those files which are the users own files (unless admin of course).

So that the user does not see any "Access Denied" records.

this is proving tricky for me.

I have a field that is filled with the users user name on record creation and this is a hidden field so I would use that this field is called "creator"...

anyway thanks for any help anyone in advance.....

Link to comment
Share on other sites

Hi Red,

Did you try as I suggested in this thread?

http://fmforums.com/forum/showtopic.php?tid/192394/post/277522/#277522

If you had problems with it, let me know I will see what I can do to help. If I can't help you then I'm sure someone else here will step in :)

Michael

Link to comment
Share on other sites

If this is the first time someone logs in they will not have any records and and as such will get an error...

Could a script be used to create a record and put their user name in the correct field...

so >>>

the flow of the script would be if

count = 0 (count is the count of fields with their name in)

Create record .. insert [userName] into field "creator"

then do another find>>>>

Is that silly or would it work....

Link to comment
Share on other sites

This topic is 5965 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.