acs-permissions-procs.tcl

  • last updated 43 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Improve wording of notice in error log

merged changes from the oacs-5-9 branch and resolved conflicts

  1. … 7834 more files in changeset.
- add [ad_conn ajax_p] to check, whether the request was an ajax requests (assumption: ajax-request sets header-field -Requested-With: XMLHttpRequest")

- extend permission::require_permission to omit redirection of unauthenticaed users to the login page for ajax requests

  1. … 1 more file in changeset.
Use namespace qualifiers instead of the Tcl "global" command

- improve comments

- don't rely on abbreaviation "int"

- improve backward compatibility: although permission_p is boolean, the results of often compared with literal "0" and "1", so return an integer as well

- Add SQL schema acs_permission to allow to call sql-functions for

Oracle and PostgreSQL in exactly the same way

- Move postgres permission function to the new neamespace and provide

stubs for backward compatibility

- New function permission::get_parties_with_permission

to support a restricted form of reverse lookup for permssions

in order to reduce the dependencies on

acs_object_party_privilege_map for PostgreSQL

- make upgrade scripts more robust (support repeated loading)

- bump verison number of acs-tcl to 5.9.1d9

- bump version number of acs-kernel to 5.9.1d11

  1. … 12 more files in changeset.
- move deprecated procs to acs-outdated

- add editor hints to keep spaces/tabs in the furture more consistent

  1. … 754 more files in changeset.
Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

  1. … 2547 more files in changeset.
- mark remaining two functions of the ad_* permission interface as deprecated

- change 'util_memoize "..."' into 'util_memoize [list ...]' as pointe out by Frank for security reason and correctness

  1. … 6 more files in changeset.
- 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