|
|
Access control to user data
|
|
Date: 2006/06/01 00:23
|
By: mikko
|
Status: User
|
|
|
Karma: 107  
|
|
Platinum Joomlapolitan  | Posts: 2230 |   | |
|
I just figured out a way to make rudimentary field level access control as plugin.
The plugin would work as like this:
Administrator defines a group of privacy settings in the database. Each entry would consist of id, name, fields to hide and condition.
Each user can choose which privacy settings (database entries) are used on a deidcated profile tab.
Before user A vies profile of user B, the privacy options of user B are fetched and the chosen privacy settigns are enforced.
Enforcing a privacy entry would start by evaluating a conditions. This would be one or a combination of the following: -is connected -shares a field
After the conditions are evaluated, each row with a matching condition would have those fields that are listed in the entry hidden.
Any opinions?
mikko My FREE plugins: List Tab, Conditions, Extended Selects, ReadPDF, Consolidated Tab, Privacy Policy, CB Tab Wrapper Module, CB List Wrapper Module, Simple Sort, Filter Columns, Super Search, Advanced Search, Template Switcher. More info and downloads.
Check out a demo of super search and sortable lists.
My commercial plugins: Advanced Profile Control (1.0.6 stable released)
|
|
The administrator has disabled public write access. |
|
|
|
Re:Access control to user data
|
|
Date: 2006/06/01 01:52
|
By: irgendwer
|
Status: User
|
|
|
Karma: 2  
|
|
Senior Joomlapolitan  | Posts: 87 |   | |
|
Did I understand that right? Users could define who can view their profil content (everybody, registrated, connections)
This would be great! South Korea's got Seoul
|
|
The administrator has disabled public write access. |
|
|
|
Re:Access control to user data -first demo online
|
|
Date: 2006/06/01 07:36
|
By: mikko
|
Status: User
|
|
|
Karma: 107  
|
|
Platinum Joomlapolitan  | Posts: 2230 |   | |
|
Ok. I coded a plugin that can hide any tab.
There is a demo at http://hondchan.dy.fi. The administrator applies privacy policy and hides a list of his cats-tab so that no-one can see it. All other users have this tab visible.
There is also a development build available at http://hondchan.dy.fi/downloads. I recommend not installing it, though since there is no read me and it is quite hard to understand how to configure it without any instructions. The way I coded it, though might be really interesting to see.
mikko My FREE plugins: List Tab, Conditions, Extended Selects, ReadPDF, Consolidated Tab, Privacy Policy, CB Tab Wrapper Module, CB List Wrapper Module, Simple Sort, Filter Columns, Super Search, Advanced Search, Template Switcher. More info and downloads.
Check out a demo of super search and sortable lists.
My commercial plugins: Advanced Profile Control (1.0.6 stable released)
|
|
The administrator has disabled public write access. |
|
|
|
Re:Access control to user data -first demo online
|
|
Date: 2006/06/02 07:27
|
By: beat
|
Status: Admin
|
|
|
Karma: 243  
|
|
Admin  | Posts: 4066 |   | |
|
mikko wrote: Ok. I coded a plugin that can hide any tab.
There is a demo at http://hondchan.dy.fi. The administrator applies privacy policy and hides a list of his cats-tab so that no-one can see it. All other users have this tab visible.
There is also a development build available at http://hondchan.dy.fi/downloads. I recommend not installing it, though since there is no read me and it is quite hard to understand how to configure it without any instructions. The way I coded it, though might be really interesting to see.
mikko
Indeed very interesting way. Congrats and thanks for sharing. I'm amazed how you could simply do it using the API without hacking the core , just hacking automatically a little the tables on install !
Should proabably warn users to not change any tabs after plugin installed... ? Beat - Developer on Community Builder core Team - If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now  - Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
|
|
The administrator has disabled public write access. |
|
|
|
Re:Access control to user data -first demo online
|
|
Date: 2006/06/02 14:57
|
By: mikko
|
Status: User
|
|
|
Karma: 107  
|
|
Platinum Joomlapolitan  | Posts: 2230 |   | |
|
beat wrote: Should proabably warn users to not change any tabs after plugin installed... ?
Certainly. But you would not expect a full documentation from an aplha release 
mikko My FREE plugins: List Tab, Conditions, Extended Selects, ReadPDF, Consolidated Tab, Privacy Policy, CB Tab Wrapper Module, CB List Wrapper Module, Simple Sort, Filter Columns, Super Search, Advanced Search, Template Switcher. More info and downloads.
Check out a demo of super search and sortable lists.
My commercial plugins: Advanced Profile Control (1.0.6 stable released)
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:Access control to user data -first demo online
|
|
Date: 2006/06/07 23:31
|
By: mephistophele
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 24 |   | |
|
Uhm... i installed the plugin.. but i cannot go into its setting... because i have this error:
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in d:programmieasyphp1-
8wwwjoomla_108_stabile_itacomponentscom_comprofilerpluginuserplug_privacypolicyprivacypolicy.php on line 14
|
|
The administrator has disabled public write access. |
|
|