Skip to content
Permalink
Browse files

fixed a few typo in the permissions checks where users were blocked f…

…rom doing things they should be able to;

resolves http://bugs.web2project.net/view.php?id=1256
  • Loading branch information...
caseysoftware committed Mar 2, 2013
1 parent 93df189 commit 15203f7454ad845d540e486a8a880cf73c3036c9
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/projectdesigner/index.php
@@ -26,7 +26,7 @@
// check permissions for this module
$perms = &$AppUI->acl();
$canView = canView($m);
$canAddProject = $perms->checkModuleItem('projects', 'add', $project_id);
$canAddProjects = $perms->checkModuleItem('projects', 'add', $project_id);
if (!$canView) {
$AppUI->redirect(ACCESS_DENIED);
@@ -73,7 +73,7 @@
$titleBlock = new w2p_Theme_TitleBlock($ttl, 'projectdesigner.png', $m, $m . '.' . $a);
$titleBlock->addCrumb('?m=projects', 'projects list');
$titleBlock->addCell();
if ($canAddProject) {
if ($canAddProjects) {
$titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new project') . '">', '', '<form action="?m=projects&a=addedit" method="post" accept-charset="utf-8">', '</form>');
}
$titleBlock->show();
@@ -177,7 +177,7 @@ function submitIt() {
$titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new project') . '">', '', '<form action="?m=projects&a=addedit" method="post" accept-charset="utf-8">', '</form>');
}
if ($canAddTask) {
if ($canAddTasks) {
$titleBlock->addCell();
$titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new task') . '">', '', '<form action="?m=tasks&a=addedit&task_project=' . $project_id . '" method="post" accept-charset="utf-8">', '</form>');
}

0 comments on commit 15203f7

Please sign in to comment.
You can’t perform that action at this time.