xfn-permission-system

From DiSo wiki

Jump to: navigation, search

Idea: XFN Permission System (XPS)

This is sort of quick and dirty, but I was thinking about a social permissions system (SPS?) for DiSo components. In the same way that on FaceBook you can define who can see your data/profile or contact you, the XPS/SPS would allow the admin to define what various users can do on the site.

XFN defines a large collection of relationships, and these could become roles in a granular permissions system. Plugins could define operations that require a certain relationship to access. Structurally it would be almost identical to Drupal's permissions system, but with a specific set of roles -- the XFN relationships.

---more coming--

--User:Steveivy

  • In the past I've thought (in the context of WP) of something like:
is_friend()
is_contact()
is_kin()

etc..., all returning boolean based on if the current user is logged in and if their login is associated with a link with the _* XFN attribute. Useful for plugins that have data that may be permissioned, but also great for just sticking in template code:

code code public stuff
<?php if(is_kin()) : ?>
Family secrets...
<?php endif; ?>
continue public stuff...

singpolyma 21:47, 15 December 2007 (PST)