Web Development with Visual FoxPro
User security
Gravatar is a globally recognized avatar based on your email address. User security
  Marco Antonio Sepulveda Valbuena
  All
  May 17, 2023 @ 12:03pm

Best regard,

I am building an app with West Wind Web Connection, I need to add security to restrict users to certain app options even if they are already logged in. How can I do it?

Gravatar is a globally recognized avatar based on your email address. re: User security
  Rick Strahl
  Marco Antonio Sepulveda Valbuena
  May 18, 2023 @ 04:53am

Probably need to implement roles or add access levels for users. If you use the wwUserSecurity (built-in or the add-in) you can add fields to the user record and query that information at runtime. Roles tend to require another table, while access levels or a roles memo that lists out roles can also be used to specify the membership.

In app code you can then check against these values on your user - best with custom methods like IsUserInRole("Administrator") to make it easy and consistent in app code.

Either way you have to build it yourself... there's no built-in way to do this.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: User security
  Marco Antonio Sepulveda Valbuena
  Rick Strahl
  May 18, 2023 @ 09:42am

thanks for answering!

© 1996-2024