How to make a dynamic permission system in PHP
<p>For an application I'm building I need some kind of permission system. I want to build it myself. Now there are a couple of options.</p>

<ul>
<li>Access control list </li>
<li>Role based system</li>
<li>Group based</li>
</ul>

<p>I find ACL a bit over the top, role based only really works if you know your resources and groupbased is what I'm leaning towards, however I have an issue.</p>

<p>I have a system where <strong>Users</strong> can <em>Edit</em> artists (i.e. <strong>Superfans</strong>), all users who are eglible for this will go into some kind of <strong>group/role</strong>. But how do I (this is where the dynamic parts comes into play) appoint them to single artists? I was thinking of just 5 people per artist.</p>

<p>So basically; <strong>I need a group-based permission system that allows user-based permissions as well.</strong></p>

<p>Writing that it feels like I need ACL, but I can't make resources like: can_edit_u2, can_edit_bonjovi, can_edit_thebeatles.. or can I?</p>
