Link | admin_creategroup |
Author | Jason Huck |
Category | Administration |
Version | 8.x |
License | http://opensource.org/licenses/artistic-license.php |
Posted | 21 Nov 2006 |
Updated | 21 Nov 2006 |
More by this author... |
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].
admin_creategroup( -name='TestGroup', -enabled='Y', -comment='This is a test group.' );
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;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft