Search these areas:
Help
Support Forums
Product Info



-Introduction
-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Views
-Templates
-Components
-Data Analysis
-Members
-Security
-Importing
-Exporting
-FTP
-JavaScript
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-Glossary
-New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

Support Forum



REALLY NEED HELP: Syspages.ws and guest logins
Kevin_J_Nicholls asked:
I am working on a scenario where guests can sign themselves  (and other guests) up.

When I log on as a guest and try to sign a friend of mine up as a guest I keep getting a message:
"Must be owner or administrator to change membership."

This message is being created from syspages.ws.handleAddressBookInsert

Can I see the sourcecode so I can confirm? Can I get the sourcecode so I can alter and created my own syspages.ws?


Kevin
 
  steveh responded:
  syspages.ws.handleAddressBook is "hard coded' in the platform is not available for editing or viewing.

The reason guests can't sign up other guests, is because the maximum permissions for guests is "editor", which only allows you to change records in the web, not edit the membership status of other folks.

To do what you want to do, you need to manually assign members to role of Administrator, and those people in turn will have to manually assign others the role of Administrator.
 
  steveh responded:
  I take that back.

One of the original Westside devs just reminded me that we have a Member script object that would be useful here.

Take a look at these topics:

http://helpv2.westside.com/default.view?Topic=objectmodel/member/wsmember

http://helpv2.westside.com/default.view?Topic=objectmodel/members/wsmembers

Using these objects, you could write a script that captures the functionality you are looking for.

One more thing: if a Guest tries to run a script which includes, say, Members.add(), the script will fail, since calling this method requires Admin permissions.  You will need to use the "asAdmin" qualifier in these scripts.

For info on the using "asAdmin", see

http://helpv2.westside.com/default.view?Topic=securing/sscripts
 
  Please Log On
or create your own DataWeb Account.
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us