aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/access.php
AgeCommit message (Collapse)Author
2010-09-16Refs #2450: Documented access.php.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6946 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-15Refs #2220: Pulled remaining classes out of lib files. Core classes now ↵ewinslow
autoloaded via __autoload(). git-svn-id: http://code.elgg.org/elgg/trunk@6941 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-06Refs #2220: Pulled most classes / interfaces out of lib files (except ↵ewinslow
query.php and exception.php) into "classes" folder. Replaced inline classes with "require_once" statements for now. Ran unit tests to verify functionality before committing. git-svn-id: http://code.elgg.org/elgg/trunk@6908 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-29Merged [6875] from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6878 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-22Merged r6757:6810 from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6850 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-06-12Merged r6362:6366 from 1.7 to trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6469 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-05-14merge -r5898:5928 (not excluding riverdashboard, notifications, and ↵brettp
messageboard) from 1.7 to trunk. git-svn-id: http://code.elgg.org/elgg/trunk@6058 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-26Fixes #1540: Added site_guid to get_user_access_collections().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3975 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-19Fixes #1519: Corrected site_guid in create_access_collection().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3949 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-08Fixes #1496: delete_access_collection() invalidates the access collection ↵brettp
cache before attempting to delete. Removed a misplaced unset() in a unit test that was causing test objects not to be properly deleted. git-svn-id: http://code.elgg.org/elgg/trunk@3922 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Add elgg_deprecated_notice() so we don't have to re-write all the elgg_log() ↵brettp
deprecated notices to register_error()s. Updated current ones to use this. git-svn-id: http://code.elgg.org/elgg/trunk@3874 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-10using defines for ACCESS values - closes #1064cash
git-svn-id: http://code.elgg.org/elgg/trunk@3749 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-07removed code that wasn't doing anything in access.phpcash
git-svn-id: http://code.elgg.org/elgg/trunk@3733 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-11-02Changed elgg_get_entities_from_access_id() to be closer to how other ↵brettp
functions work. git-svn-id: http://code.elgg.org/elgg/trunk@3613 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-30Deprecating get_entities_from_access_id().nickw
git-svn-id: http://code.elgg.org/elgg/trunk@3610 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-24Slight code cleanup.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3577 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-15Merged admin access override hook with ignore access system override hook.brettp
get_sql_access_prefix() now correctly uses elgg_check_access_overrides() instead of elgg_get_ignore_access(). git-svn-id: http://code.elgg.org/elgg/trunk@3552 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-13Standardized users and entities.brettp
Fleshed out elgg_set_ignore_access() and elgg_get_ignore_access() git-svn-id: http://code.elgg.org/elgg/trunk@3533 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-13Fix typo in ElggAccess:get_ignore_access().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3529 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-13First pass at removing $is_admin global.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3528 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-08Brought access.php and sesssion.php up to code standards.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3517 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-09-16Changed get_entities_from_access_collection() to ↵brettp
get_entities_from_access_id() to be more generic. git-svn-id: https://code.elgg.org/elgg/trunk@3488 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-09-10Updated fixes for checking for admin in get_access_sql_prefix()brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3485 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-09-10Checking against admin metadata instead of $is_admin global in ↵brettp
get_access_sql_suffix(). git-svn-id: https://code.elgg.org/elgg/trunk@3484 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-09-10Fixing a bug with when getting the sql suffix for the non-loggedin user.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3483 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-09-03Adding additional hooks to add/remove/update users for access_collections()brettp
Added autocomplete endpoint in input_init() git-svn-id: https://code.elgg.org/elgg/trunk@3460 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-09-01a simple function which returns a string version of an entity's access leveldave
git-svn-id: https://code.elgg.org/elgg/trunk@3452 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-31All line endings are now Unix-style.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3451 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-20Whoa nelly this is a big one: Removed license and copyright for files.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3427 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-05Added documentation to list_entities_from_access_collection();brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3421 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-07-29Added get/list_entities_from_access_collection().brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3416 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-07-07Refs #1099: Using write access hook to allow group-only ACLs. Need to ↵brettp
examine better solutions after 1.7. git-svn-id: https://code.elgg.org/elgg/trunk@3395 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-05-18Closes #1025: Using the correct variable.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3294 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-05-05Removing spurious error log messagesmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@3263 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-04Access modification - owners can always see their own contentben
git-svn-id: https://code.elgg.org/elgg/trunk@3074 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-04Added has_access_to_entity functionkevinjardine
git-svn-id: https://code.elgg.org/elgg/trunk@3068 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-04Added the ability to optionally specify the user to get_access_sql_suffixkevinjardine
git-svn-id: https://code.elgg.org/elgg/trunk@3067 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-02Changed the order of the access dropdown so that it is in order of ↵kevinjardine
increasing restriction (private, friends, logged-in, public). git-svn-id: https://code.elgg.org/elgg/trunk@3019 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-26Added "enemies" code to get_access_sql_suffix. This implements two features: ↵kevinjardine
a. a user can prevent another user from seeing any of his content and b. a user can filter out all the content created by another user. There is no interface for this yet, but adding one should be easy with this core support. git-svn-id: https://code.elgg.org/elgg/trunk@2959 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-25Added friends access levelkevinjardine
git-svn-id: https://code.elgg.org/elgg/trunk@2944 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-25Introduces user default access.kevinjardine
git-svn-id: https://code.elgg.org/elgg/trunk@2943 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-23Added site default access permissions. Refs #744ben
git-svn-id: https://code.elgg.org/elgg/trunk@2885 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-05Minor change to access SQL. Fixes #687ben
git-svn-id: https://code.elgg.org/elgg/trunk@2655 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-04Access improvements on granular notificationsben
git-svn-id: https://code.elgg.org/elgg/trunk@2649 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-04Moved the access constant definitions from access.php to elgglib.php, so ↵ben
they'll be loaded initially. git-svn-id: https://code.elgg.org/elgg/trunk@2638 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-23Refs #706marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2611 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-07Closes #286: Group access restrictions issue fixed, modified from patch ↵marcus
supplied with #315 git-svn-id: https://code.elgg.org/elgg/trunk@2538 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-12-04Closes #421 : Catches the DB Exception, so hopefully this will prevent the ↵marcus
error from showing up in the future :) git-svn-id: https://code.elgg.org/elgg/trunk@2505 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-14* Introducing get_loggedin_user() and get_loggedin_userid()marcus
* ACLs now using get_loggedin_user* * Some logic cleaned up * Some "Undefined..." messages cleaned up git-svn-id: https://code.elgg.org/elgg/trunk@2459 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-03Minor tweaks 'cos case does matter...marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2379 36083f99-b078-4883-b0ff-0f9b5a30f544