arckinteractive/Roles — pull request #7 by hypeJunction (2013-08-08 13:11:51+00:00)
Title: Wildcard paths and exceptions

Working with regexp is too much hassle. I propose the following:

```
'blog/add/.*' => array(
'rule' => 'deny',
'exceptions' => array(
'blog/add/{$self_guid}'
)
)
```

The above will deny access to all pages for adding a blog except for self. So, the user won't be able to add blogs to groups for example.
Implementing this with regexp creates unreadable garbage, especially if you have more than 3 exceptions.