1
Hi guys,
i am working on a module with simple permission.
Xoops Usergroups can either have "submit" permission or not.
I already managed to check the permission by
$gperm_handler =& xoops_gethandler('groupperm');
if ($gperm_handler->checkRight("submit", 0, $groups, $module->getVar('mid')))
{
$maysubmit = 1;
}
Now I am stuck!
My problem is I cannot figure out the correct XOOPS function calls to get the permission into the group_permission table and to read out the group_permission table to display the check boxes in my admin form correctly.
If there are some XOOPS Cracks around your help would be highly appreciated!
TIA
Marco
My Permission Admin Form looks like this:
$grouplist =& $member_handler->getGroupList();
$gperm_handler =& xoops_gethandler('groupperm');
foreach (array_keys($grouplist) as $i) {
$selected = array();
$ret_ele = ''.$grouplist[$i].' | ';
$ret_ele .= ''; $ret_ele .= ''; $ret_ele .= ' |
';
$elements[] = $ret_ele;
}
$tray = new XoopsFormElementTray('');
$tray->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
$tray->addElement(new XoopsFormButton('', 'reset', _CANCEL, 'reset'));
$ret = "
';
echo $ret;
--
Match Dart!Darts Ranking, News, Videos, Forum and more