This module will integrate Eye4web\Zf2Board
and Eye4web\Zf2Abac
, and also setup assertions for:
- Reading boards
- Reading/writing topics
- Writing/editing/deleting posts
-
Add this project composer.json:
"require": { "eye4web/eye4web-zf2-board-abac": "dev-master" }
-
Now tell composer to download the module by running the command:
$ php composer.phar update
-
Enable it in your
application.config.php
file.<?php return array( 'modules' => array( // ... 'Eye4web\Zf2BoardAbac' ), // ... );
-
Creating permission groups
You are now able to use the assertions:
- board.read
- topic.read
- topic.write
- post.write
- post.edit
- post.delete