presentation-acl-add-group.tcl

This page displays a list of groups. The admin can grant certain privilege to one group at a time.

Location:
/packages/wp-slim/www/presentation-acl-add-group.tcl
Author:
Haolan Qin <hqin@arsdigita.com>
Created:
01/22/2001
CVS ID:
$Id: presentation-acl-add-group.tcl,v 1.6 2015/06/27 20:34:42 gustafn Exp $

Related Files

[ hide source ] | [ make this the default ]

File Contents

# /packages/wp/www/presentation-acl-add-group.tcl

ad_page_contract {

    This page displays a list of groups. The admin can grant certain privilege
    to one group at a time.

    @author Haolan Qin (hqin@arsdigita.com)
    @creation-date 01/22/2001
    @cvs-id $Id: presentation-acl-add-group.tcl,v 1.6 2015/06/27 20:34:42 gustafn Exp $
} {
    pres_item_id:naturalnum,notnull
    role:notnull
    title:notnull
} -properties {
    context
    pres_item_id
    role
    groups:multirow
}

permission::require_permission -object_id $pres_item_id -privilege wp_admin_presentation

set context [list [list [export_vars -base presentation-top {pres_item_id}] "$title"] [list [export_vars -base presentation-acl {pres_item_id}] "[_ wp-slim.Authorization]""[_ wp-slim.Add_Group]"]

db_multirow groups groups_get {
    select group_id, group_name
    from groups
    order by group_name
}

ad_return_template