aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/access.php
AgeCommit message (Collapse)Author
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
2008-10-29Reverted database access permission caching.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2352 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-28Flags to prevent queries being run multiple times. marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2325 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-28Removed spurious noticemarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2324 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-06A massive speed increase for access permissions. :)ben
git-svn-id: https://code.elgg.org/elgg/trunk@2184 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-09-24Returning cache control back to access permissions.ben
git-svn-id: https://code.elgg.org/elgg/trunk@2118 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-09-24Metadata permissions now work as advertised, but had to remove caching in ↵ben
the process. Will attempt to re-enable it shortly. git-svn-id: https://code.elgg.org/elgg/trunk@2109 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-09-17Access permissions now cached correctly.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2096 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-18Small access fixben
git-svn-id: https://code.elgg.org/elgg/trunk@2010 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-18Corrected minor friend collection issueben
git-svn-id: https://code.elgg.org/elgg/trunk@2005 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Refs #237, #46 and #227: Added override code.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@1902 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Refs #237, #46 and #227: Added active only override to get_access_sql_suffixmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@1889 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Admins now see all!ben
git-svn-id: https://code.elgg.org/elgg/trunk@1873 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-12Removed superadmin access controls. You can't call get_entity from within ↵marcus
get_access_sql_suffix and get_access_array as it causes an infinite loop. The only safe way to do this is via a plugin hook. git-svn-id: https://code.elgg.org/elgg/trunk@1865 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-12Further access additions for admins.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1860 36083f99-b078-4883-b0ff-0f9b5a30f544