January 8, 201016 yr 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
January 9, 201016 yr Author 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, 201016 yr by Guest
January 9, 201016 yr Author 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
Create an account or sign in to comment