I have worked with parts of your framework to make my web. I have implemented the user registration and now (after the user have been registrated) I need to change him from the default group "Users" to another from the users administration page. I have a function it's seems like working but is not true.
FUNCTION ChangeUserGroup AS L (userId AS C, newGroup AS C)
dim uservalue.groups as c
dim uservalue.guid as c
dim output as p
dim output.controls as p
dim output.controls.guid.value as c
dim result as p
dim error_message as c
dim uservalue.userid as c
dim uservalue.email as c
dim request as p
uservalue.guid = A5WS_Get_GUID_From_User(userId, request)
uservalue.groups = newGroup
uservalue.userid = userId
uservalue.email = userId
result = a5ws_Save_WebUser_Values(output,uservalue)
if result.errors = .T. then
error_message = result.error_text
ChangeUserGroup = .f.
ChangeUserGroup = .t.
Also I want to know what is the right way to define permission to a web or actions in this page?
Now I have a table with the pages and the actions (delete row, update row, etc.) and I need an administrator defines the permisions for every user group from the web interface. It's necesary to check on page initialize if the user has permission or is there any function that inform to A5 if the user have or not permission, something like set_user_permision(page, "Y/N")
I hope you understand me, my english is a little lacking.