acs-permissions-procs.tcl

  • last updated 1 hour ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- fix for bug #2398

- fix for #2230 (using the optimization suggested by Nagita Karunaratne)

Rewriting acs_permission__permission_p function to use recursive queries ( available in PG since 8.4 ) and modifiying

queries around core packages to avoid checking persmissions using a subquery on the acs_object_party_privilege_map view.

  1. … 14 more files in changeset.
HTML strict cleanup

  1. … 1 more file in changeset.
remove deprecated calls to ad_parameter

  1. … 11 more files in changeset.
Normalizing string comparison operations into tcl 8.4 operations, enabling byte-code compilation for expressions and many conditionals

  1. … 367 more files in changeset.
change how permission::cache_p is defined so it does not break ttrace

change ad_verify_and_get_user_id to ad_conn user_id, change ad_maybe_redirect_for_registration to auth::require_login, make some db_ and dt_ function -public

  1. … 689 more files in changeset.
commit to HEAD of merge of changes on oacs-5-1 branch between tags jcd-merge-5-1-20040724 and jcd-merge-5-1-20050111

  1. … 2275 more files in changeset.
bug #1997: fixed DS user-switching (U-S), first checking party_id instead of ad_conn, since calling ad_conn with (U-S) enabled enters into an infinite loop that makes aolserver die, with (U-S) enabled, permission_p will always get an party_id and in this way avoiding calls to ad_conn

merge of changes on oacs-5-1 branch between tags jcd-merge-5-1-20040517 and jcd-merge-5-1-20040628 to HEAD

  1. … 687 more files in changeset.
Fixed bug when bumping to login page from within permission_p, but permission_p was called form within ad_get_login_url, which is the proc that determines which login page to use

  1. … 1 more file in changeset.
Formatting change: && at beginning of lines, instead of end

Make the automatic detection of expired logins work when you explicitly supply party_id 0 as well

merge all the changes on the oacs-5-1 and dotlrn-2-0 branches up to tag jcd-merge-20040420

  1. … 647 more files in changeset.
fix for bug 1433, PermissionCacheP used memoize on non list thing which would break with empty object_id etc

Fixed another typo in permissions procs

Fixed bug with thread-level caching of permissions: Typo in proc definition

Caching results of permission checks within one thread -- typically avoids 3-6 DB hits per page

Committed experimental fix for untrusted_user_id problem mentioned in forums posting at http://openacs.org/forums/message-view?message_id=152083

Slight hack to make HTMLified text not have whitespace at the end

  1. … 1 more file in changeset.
Allow passing in of party_id to write_permission_p and require_write_permission

make some Notices either warnings or debug and made them more descriptive by generally including the proc name as well bug #1032

  1. … 74 more files in changeset.
Added permission::write_permission_p and permission::require_write_permission, which tests if the user has write, or create and is the creation_user

    • -122
    • +167
    ./acs-permissions-procs.tcl
More for bug #814.

  1. … 6 more files in changeset.
Another part of the fix for bug #814.

  1. … 1 more file in changeset.
Lars added proc util_get_current_url. Removing updates of nsv apm_library_mtime that now happen in apm_source proc. Removing proc apm_mark_packages_for_bootstrap that was used to avoid server restart after package installation (we are now requiring server restart). Moving flushing of package_installed_p cache to happen at end of apm_package_install proc instead of the beginning. Adding parameter PermissionCacheTimeout that determines the lifetime of the permissions cache.

  1. … 7 more files in changeset.
adding missing return statement in permission_p

request-processor-init.tcl

  1. … 2 more files in changeset.
add @see comments for most deprecated functions

  1. … 9 more files in changeset.