[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-developers] PHPGW_ACL_ADD and ToDo Categories
From: |
Eric Parusel |
Subject: |
[Phpgroupware-developers] PHPGW_ACL_ADD and ToDo Categories |
Date: |
Wed, 30 Jan 2002 10:57:07 -0800 |
Hi there,
I'm having a small problem with the ToDo application..
Whenever I'm in a category that someone else has created (so I'm not the
owner of the category), the "Add" button doesn't display...
If you look below at the code I yanked out of todo/inc/class.ui.inc.php,
you'll see that I need PHPGW_ACL_ADD permissions to be able to see the "Add"
button.
If I go to Preferences -> ToDo -> Grant Access, I don't have the ability to
set _ADD permissions, only _READ, _EDIT and _DELETE. My first assumption is
that there *should* be an "Add" column in that table as well, with
checkboxes.
Am I going along the right lines?? If so, I might just look into adding the
ADD column if possible...
Thanks,
Eric Parusel
Code snippet below:
//=====================
if ($this->bo->check_perms($this->grants[$cat[0]['owner']],PHPGW_ACL_ADD) ||
$cat[0]['owner'] == $this->account)
{
$this->t->set_var('add','<form
method="POST" action="' .
$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.add&ca
t_id=' . $this->cat_id)
. '"><input type="submit" name="Add" value="' . lang('Add') .'"></form>'
);
}
else
{
$this->t->set_var('add','');
}
//======================
- [Phpgroupware-developers] PHPGW_ACL_ADD and ToDo Categories,
Eric Parusel <=