Index: openacs-4/packages/acs-authentication/acs-authentication.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-authentication/acs-authentication.info,v
diff -u -N -r1.14.2.6 -r1.14.2.7
--- openacs-4/packages/acs-authentication/acs-authentication.info 5 Jul 2004 19:47:29 -0000 1.14.2.6
+++ openacs-4/packages/acs-authentication/acs-authentication.info 19 Jul 2004 18:39:40 -0000 1.14.2.7
@@ -32,6 +32,7 @@
+
+ You don't have permission to see this page. +" + } + } +} + ad_proc subsite::util::sub_type_exists_p { object_type } { Index: openacs-4/packages/acs-subsite/www/user/portrait/upload-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/user/portrait/Attic/upload-2.tcl,v diff -u -N -r1.7.2.1 -r1.7.2.2 --- openacs-4/packages/acs-subsite/www/user/portrait/upload-2.tcl 2 Jul 2004 11:40:55 -0000 1.7.2.1 +++ openacs-4/packages/acs-subsite/www/user/portrait/upload-2.tcl 19 Jul 2004 18:39:41 -0000 1.7.2.2 @@ -12,6 +12,7 @@ {title ""} } +subsite::upload_allowed set current_user_id [auth::require_login] if [empty_string_p $user_id] { Index: openacs-4/packages/acs-subsite/www/user/portrait/upload.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/user/portrait/upload.tcl,v diff -u -N -r1.3 -r1.3.4.1 --- openacs-4/packages/acs-subsite/www/user/portrait/upload.tcl 15 Aug 2003 21:18:13 -0000 1.3 +++ openacs-4/packages/acs-subsite/www/user/portrait/upload.tcl 19 Jul 2004 18:39:41 -0000 1.3.4.1 @@ -16,6 +16,7 @@ set current_user_id [ad_verify_and_get_user_id] if [empty_string_p $user_id] { + subsite::upload_allowed set user_id $current_user_id set admin_p 0 } else { Index: openacs-4/packages/dotlrn/dotlrn.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/dotlrn.info,v diff -u -N -r1.118.2.3 -r1.118.2.3.4.1 --- openacs-4/packages/dotlrn/dotlrn.info 3 Apr 2004 04:04:03 -0000 1.118.2.3 +++ openacs-4/packages/dotlrn/dotlrn.info 19 Jul 2004 18:39:38 -0000 1.118.2.3.4.1 @@ -21,6 +21,10 @@
++ + + + Index: openacs-4/packages/dotlrn/www/admin/dotlrn-admins.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/dotlrn-admins.tcl,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/dotlrn/www/admin/dotlrn-admins.tcl 19 Jul 2004 18:39:39 -0000 1.1.2.1 @@ -0,0 +1,66 @@ +# +# Copyright (C) 2001, 2002 MIT +# +# This file is part of dotLRN. +# +# dotLRN is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# dotLRN is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# + +ad_page_contract { + Displays Administrators dotLRN admin page + + @author Hector Amado (hr_amado@galileo.edu) + @creation-date 2004-06-28 + @cvs-id $Id: dotlrn-admins.tcl,v 1.1.2.1 2004/07/19 18:39:39 rocaelh Exp $ +} + +set context_bar "[_ dotlrn.Administrators]" +set referer [ns_conn url] + +set dotlrn_admins_group [db_string group_id_from_name " + select group_id from groups where group_name='dotlrn-admin'" -default ""] + +set admin_id [ad_verify_and_get_user_id] + +set elements [list user \ + [list label "User" \ + link_url_col user_url ] \ + remove \ + [list label "Remove" \ + link_url_col remove_url \ + display_template {+ ++
+ You don't have permission to see this page. +" +} + if {[string equal $value "grant"] == 1} { ad_permission_grant $user_id [acs_magic_object "security_context_root"] "admin" } elseif {[string equal $value "revoke"] == 1} { Index: openacs-4/packages/dotlrn/www/admin/user.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/user.adp,v diff -u -N -r1.25.2.2.4.1 -r1.25.2.2.4.2 --- openacs-4/packages/dotlrn/www/admin/user.adp 17 Jun 2004 16:34:09 -0000 1.25.2.2.4.1 +++ openacs-4/packages/dotlrn/www/admin/user.adp 19 Jul 2004 18:39:39 -0000 1.25.2.2.4.2 @@ -29,19 +29,25 @@
+ You don't have permission to see this page. +" + } + } + } + "managemembership" { + if { ![parameter::get_from_package_key -package_key dotlrn-portlet -parameter AllowManageMembership] } { + if { ![dotlrn::admin_p] } { + ns_log notice "user has tried to see /dotlrn/www/members without permission" + ad_return_forbidden \ + "Permission Denied"\ + "
+ You don't have permission to see this page. +" + } + } + } + "cplayout" { + if { ![parameter::get_from_package_key -package_key dotlrn-portlet -parameter AllowCustomizePortalLayout] } { + if { ![dotlrn::admin_p] } { + ns_log notice "user has tried to see /dotlrn/www/one-community-portal-configure without permission" + ad_return_forbidden \ + "Permission Denied"\ + "
+ You don't have permission to see this page. +" + } + } + } + "guestuser" { + if { ![parameter::get_from_package_key -package_key dotlrn-portlet -parameter AllowCreateGuestUsersInCommunity] } { + if { ![dotlrn::admin_p] } { + ns_log notice "user has tried to see /dotlrn/www/user-add without permission" + ad_return_forbidden \ + "Permission Denied"\ + "
+ You don't have permission to see this page. +" + } + } + } + "limiteduser" { + if { ![parameter::get_from_package_key -package_key dotlrn-portlet -parameter AllowCreateLimitedUsersInCommunity] } { + if { ![dotlrn::admin_p] } { + ns_log notice "user has tried to see /dotlrn/www/user-add without permission" + ad_return_forbidden \ + "Permission Denied"\ + "
+ You don't have permission to see this page. +" + } + } + } + "manageapplets" { + if { ![parameter::get_from_package_key -package_key dotlrn-portlet -parameter AllowManageApplets] } { + if { ![dotlrn::admin_p] } { + ns_log notice "user has tried to see /dotlrn/www/applets without permission" + ad_return_forbidden \ + "Permission Denied"\ + "
+ You don't have permission to see this page. +" + } + } + } + } + } } Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.adp,v diff -u -N -r1.29.2.1.4.2 -r1.29.2.1.4.3 --- openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.adp 14 Jul 2004 19:29:27 -0000 1.29.2.1.4.2 +++ openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.adp 19 Jul 2004 18:39:40 -0000 1.29.2.1.4.3 @@ -18,12 +18,14 @@ %> +
+
-