Modules Contacts and Files don't work properly with
permissions. To have add and edit permissions correctly
do the following:
(lines from dotproject 2.0.2 branch)
--Files:
-index.php line 35:
Substitute
if ($canEdit) {
With
if ($canAuthor) {
-addedit.php line 8:
Have to say
$canEdit = $perms->checkModuleItem( $m, 'edit', $file_id );
$canAuthor = $perms->checkModuleItem( $m, 'add' );
if (!$canEdit && !$canAuthor) {
$AppUI->redirect( "m=public&a=access_denied" );
}
--Contacts:
-index.php line 147:
Change
if ($canEdit) {
With
if ($canAuthor) {
-addedit.php line 8:
Have to say
$canEdit = $perms->checkModuleItem( $m, 'edit', $file_id );
$canAuthor = $perms->checkModuleItem( $m, 'add' );
if (!$canEdit && !$canAuthor) {
$AppUI->redirect( "m=public&a=access_denied" );
}