// FOR PERMS - SEE THE DATAOBJECT!
- function get()
+ function get($v, $opts = Array())
{
// must recieve a group..
if (!isset($_GET['group_id']) || (int)$_GET['group_id'] < 0) {
while ($p->fetch()) {
$cur[$p->rightname] = clone($p);
}
- print_R($cur);exit;
+
+// print_r($cur);exit;
+
$e = -1;
$ar = array();
// echo "<PRE>"; print_r($p->defaultPermData() );
// post..
- function post()
+ function post($v)
{
if (!isset($_POST['group_id']) || (int)$_POST['group_id'] < 0) {
$this->jerr("NO GROUP");
}
- if (!$this->hasPerm( 'Core.Groups','E')) { // editing groups..
+
+ if (!$this->checkPerm('Core.Groups','E')) { // editing groups..
$this->jerr("PERMISSION DENIED");
}
}
-
-
-
+ function checkPerm($lvl, $au)
+ {
+ return $au->hasPerm("Core.Groups", $lvl);
+ }
}
\ No newline at end of file