#acs-subsite.none#
-#acs-subsite.none#
+@nr_inherited_permissions@ #acs-subsite.lt_Inherited_Permissions# + [#acs-subsite.Show#]
#acs-subsite.none#
+@nr_inherited_permissions@ #acs-subsite.lt_Inherited_Permissions#
+ [#acs-subsite.Hide#]
+ #acs-subsite.none#
+
+
- +
Index: openacs-4/packages/acs-subsite/www/permissions/perm-include.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/permissions/perm-include.tcl,v diff -u -r1.20.2.1 -r1.20.2.2 --- openacs-4/packages/acs-subsite/www/permissions/perm-include.tcl 24 Oct 2022 19:18:19 -0000 1.20.2.1 +++ openacs-4/packages/acs-subsite/www/permissions/perm-include.tcl 26 Oct 2022 14:20:35 -0000 1.20.2.2 @@ -9,21 +9,40 @@ {object_id:integer} {return_url:localurl ""} {privs { read create write delete admin }} + {detailed_permissions_p:boolean f} {user_add_url:localurl ""} } set user_id [ad_conn user_id] set admin_p [permission::permission_p -object_id $object_id -privilege admin] +set ad_return_url [ad_return_url] if { $return_url eq "" } { - set return_url [ad_return_url] + set return_url $ad_return_url } -acs_object::get -object_id $object_id -array obj -set object_name $obj(object_name) -set context_id $obj(context_id) -set parent_object_name [acs_object_name $obj(context_id)] +# +# When "privs" are passed in from the- » #acs-subsite.lGo_back_without_adding# -
+ Index: openacs-4/packages/acs-subsite/www/permissions/perm-user-add-include.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/permissions/perm-user-add-include.tcl,v diff -u -r1.10.2.1 -r1.10.2.2 --- openacs-4/packages/acs-subsite/www/permissions/perm-user-add-include.tcl 16 May 2019 09:54:29 -0000 1.10.2.1 +++ openacs-4/packages/acs-subsite/www/permissions/perm-user-add-include.tcl 26 Oct 2022 14:20:35 -0000 1.10.2.2 @@ -3,10 +3,12 @@ object_id:naturalnum,notnull return_url:localurl page:naturalnum,optional + {search ""} } -# check they have read permission on this file - +# +# Check if the current user has read permission on this object_id. +# permission::require_permission -object_id $object_id -privilege admin # TODO: @@ -18,11 +20,25 @@ set perm_url "[lindex [site_node::get_url_from_object_id -object_id [site_node::closest_ancestor_package -include_self -package_key [subsite::package_keys]]] 0]permissions/" +ad_form \ + -name filter \ + -edit_buttons [list [list "Go" go]] \ + -has_submit 1 \ + -html { class foo } \ + -export {return_url object_id page} \ + -form { + {search:text,optional + {label ""} + {html {length 30 placeholder "[_ acs-kernel.common_Search]"} } + {value $search} + } + } -on_submit {} + list::create \ -name users \ -multirow users \ -key user_id \ - -page_size 20 \ + -page_size 10 \ -page_query_name users_who_dont_have_any_permissions_paginator \ -no_data "[_ acs-subsite.lt_There_are_no_users_wh]" \ -bulk_action_export_vars { return_url object_id } \ @@ -41,11 +57,20 @@ label "[_ acs-subsite.Add]" link_url_col add_url link_html { title "[_ acs-subsite.Add_this_user]" } - display_template "[_ acs-subsite.Add]" + display_template "