Lasso Soft Inc. > Home

[admin_creategroup]

Linkadmin_creategroup
AuthorJason Huck
CategoryAdministration
Version8.x
Licensehttp://opensource.org/licenses/artistic-license.php
Posted21 Nov 2006
Updated21 Nov 2006
More by this author...

Description

Adds a new group to Lasso Admin by exposing the internal tag [_admin_addgroup]. Requires authentication as a user with permissions on Lasso's internal db's, i.e., with [auth_admin].

Sample Usage

admin_creategroup(
	-name='TestGroup',
	-enabled='Y',
	-comment='This is a test group.'
);

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

define_tag(
	'creategroup',
	-namespace='admin_',
	-req='name',
	-priority='replace',
	-description='Adds a new group to Lasso Admin.'
);
	admin_listgroups >> #name ? return(false);
	
	local('params' = array);
	
	iterate(params, local('i'));
		#params->insert(string_removeleading(#i->first, -pattern='-') = #i->second);
	/iterate;
	
	local('add') = \_admin_addgroup;
	#add->run( -params=#params);
	
	return(true);
/define_tag;

Related Tags

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft