I've added an "Access extension" plugin to the Elgg plugin repository here:
This plugin extends the Elgg access control system.
It adds a "Friends" option to Elgg access control select boxes, and a "Block this person" link to every sidebar.
If the user selects "Friends" in the access control box, that content is only visible to people on their friends list.
If they click on "Block this person" in a user's sidebar, only their public content will be visible to that user (and even then, only when the user is logged out and cannot be identified).
Keywords: access control, plugin

Comments
It looks great!
I will take a look on it. I think that it could be a great baseline for the security options of the private messages plug-in.
Thanks a lot!
A blocked person should not even see any of your content.
Good question about community posts. Please try it out and tell me what happens.
Input Array does not match ?: SELECT * FROM elgguser_flags WHERE flag = 'forum' AND user_id =
Warning: Cannot modify header information - headers already sent by (output started at /home/514/domains/researchzilla.com/html/lib/adodb/adodb.inc.php:390) in /home/514/domains/researchzilla.com/html/units/weblogs/weblogs_actions.php on line 201
I've seen that kind of error before - it usually occurs if a plugin attempts to use a user id but the user is not logged in.
In Elgg you must have an if (isloggedin()) before running any code referring to a user id. This is especially important for SQL statements because a blank user id will cause an SQL error and cause the whole application to stop.
Actually it couldn't be a messages plug-in problem, because:
- It didn't use anything related with the forum tables. It only uses the messages table.
- It uses the 'logged_on' constant. that is defined in 'unit/users/funcion_session_start.php:
However if its better use the isloggedin I could change it. What do you think Kevin?This file is not available to d/l on the plugins page
it links but goes nowhere, any ideas?
I had the same problem. I did a search on google for acsext and found this:
http://pccepa3.if.usp.br/trac/demi/browser/trunk/elgg/mod/acsext
Somebody's trac of elgg with acsext. I copy/pasted all the files from their file browser. Watch out that you remove all trailing spaces as they will cause you problems.