Index: openacs-4/packages/rules/www/add-action.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/rules/www/Attic/add-action.adp,v diff -u -r1.7 -r1.8 --- openacs-4/packages/rules/www/add-action.adp 17 Dec 2004 16:59:20 -0000 1.7 +++ openacs-4/packages/rules/www/add-action.adp 20 Dec 2004 19:38:43 -0000 1.8 @@ -1,15 +1,6 @@ - - - Permission Denied -
-
You don't have permission to admin Rule.
-
-
- -
Registration Rules - + Index: openacs-4/packages/rules/www/add-action.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/rules/www/Attic/add-action.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/rules/www/add-action.tcl 17 Dec 2004 16:29:42 -0000 1.5 +++ openacs-4/packages/rules/www/add-action.tcl 20 Dec 2004 19:38:43 -0000 1.6 @@ -13,25 +13,19 @@ # Just while I get the assessment package ready set context [list [list "one-rule?rule_id=$rule_id" "Rule Properties"] "Add Action"] -set package_id [ad_conn package_id] -set user_id [ad_conn user_id] -set context [list "Add rule"] -set rule_admin "" -set admin [permission::permission_p -object_id $package_id -party_id $user_id -privilege "admin"] -if { [exists_and_not_null rule_id] } { -set rule_admin [permission::permission_p -object_id $rule_id -party_id $user_id -privilege "admin"] -} - +permission::require_permission -object_id $rule_id -privilege "admin" if { [exists_and_not_null selected_a]} { set default_action $selected_a } set actions { {"Add Automatically" 1} {"Add to waiting list" 2} } set results [list] +if { [apm_package_installed_p dotlrn] == 1 } { db_foreach communities { *SQL* } { lappend results [list $pretty_name $community_id] } +} lappend results [list "to website" -1] Index: openacs-4/packages/rules/www/add-rule.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/rules/www/Attic/add-rule.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/rules/www/add-rule.adp 16 Dec 2004 18:44:41 -0000 1.3 +++ openacs-4/packages/rules/www/add-rule.adp 20 Dec 2004 19:38:43 -0000 1.4 @@ -1,14 +1,5 @@ @context@ - - - Permission Denied -
-
You don't have permission to admin Rule.
-
-
-
- - Edit Rule - - +Edit Rule + + Index: openacs-4/packages/rules/www/add-rule.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/rules/www/Attic/add-rule.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/rules/www/add-rule.tcl 17 Dec 2004 16:59:20 -0000 1.7 +++ openacs-4/packages/rules/www/add-rule.tcl 20 Dec 2004 19:38:43 -0000 1.8 @@ -14,13 +14,7 @@ # Just while I get the assessment package ready ad_maybe_redirect_for_registration set package_id [ad_conn package_id] -set user_id [ad_conn user_id] set context [list "Add rule"] -set rule_admin "" -set admin [permission::permission_p -object_id $package_id -party_id $user_id -privilege "admin"] -if { [exists_and_not_null rule_id] } { -set rule_admin [permission::permission_p -object_id $rule_id -party_id $user_id -privilege "admin"] -} set assessments [rules::rule::get_assessments] Index: openacs-4/packages/rules/www/add-trigger.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/rules/www/Attic/add-trigger.adp,v diff -u -r1.4 -r1.5 --- openacs-4/packages/rules/www/add-trigger.adp 16 Dec 2004 18:44:41 -0000 1.4 +++ openacs-4/packages/rules/www/add-trigger.adp 20 Dec 2004 19:38:43 -0000 1.5 @@ -8,16 +8,7 @@ } - - - Permission Denied -
-
You don't have permission to admin Rule.
-
-
-
- Registration Rules - + Index: openacs-4/packages/rules/www/add-trigger.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/rules/www/Attic/add-trigger.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/rules/www/add-trigger.tcl 16 Dec 2004 18:44:41 -0000 1.6 +++ openacs-4/packages/rules/www/add-trigger.tcl 20 Dec 2004 19:38:43 -0000 1.7 @@ -11,16 +11,7 @@ ad_maybe_redirect_for_registration set qs_sel 0 set context [list [list "one-rule?rule_id=$rule_id" "Rule Properties"] "Add Trigger"] -set package_id [ad_conn package_id] -set user_id [ad_conn user_id] -set context [list "Add rule"] -set rule_admin "" -set admin [permission::permission_p -object_id $package_id -party_id $user_id -privilege "admin"] -if { [exists_and_not_null rule_id] } { -set rule_admin [permission::permission_p -object_id $rule_id -party_id $user_id -privilege "admin"] -} - - +permission::require_permission -object_id $rule_id -privilege "admin" # Just while get the assessment package ready set questions [list] Index: openacs-4/packages/rules/www/admin-request.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/rules/www/Attic/admin-request.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/rules/www/admin-request.adp 16 Dec 2004 18:47:07 -0000 1.1 +++ openacs-4/packages/rules/www/admin-request.adp 20 Dec 2004 19:38:43 -0000 1.2 @@ -5,23 +5,23 @@ function get_interval() { interval=document.interval.date.value; - destination = "admin-request?community=@default_community@&state=@default_state@&rule=@default_rule@&interval="+interval; + destination = "admin-request?return_url=@return_url@&community=@default_community@&state=@default_state@&rule=@default_rule@&interval="+interval; if (destination) location.href = destination; }