Timothy Moser Posted January 8, 2010 Posted January 8, 2010 Is it true that custom privileges do not work in PHP CWP? I read that somewhere, but I couldn't find any more information about it. I have several users with a custom privilege set in my database, and I haven't been able to get it to work with my web pages, so I thought I'd ask the experts. Thanks, -Timothy Moser
Timothy Moser Posted January 9, 2010 Author Posted January 9, 2010 (edited) Hmm… I just did the experimenting I should have done before posting this, and I figured a few things out. First, the idea that custom privileges do not work in PHP CWP is a myth. They work perfectly as far as I have been able to tell. In my situation, I had a bunch of privileges calculated based on a global variable ($$User), which is set in a FileMaker startup script as Get(AccountName). Apparently startup scripts do not run automatically in PHP CWP (which makes sense), so I added running the script to the code. It still didn't work. I guess it must have something to do with the FileMaker variable. But at this point I think all I have to do is switch $$User out for Get(AccountName) in all my custom privileges. More later… Edited January 9, 2010 by Guest
Timothy Moser Posted January 9, 2010 Author Posted January 9, 2010 It seems to work just fine now. Great, I just had a whole discussion with myself on a public forum. But at least now a Google search for "cwp php custom privileges" points to a relevant spot. I guess it's nice to help others while I help myself… -Timothy Moser the Self-Conscious
Recommended Posts
This topic is 5431 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 accountSign in
Already have an account? Sign in here.
Sign In Now