Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted (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 by Guest
Posted

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

This topic is 5424 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.