Advanced Permissions by Owner

Permalink
I just went to set permissions by owner and noticed that there isn't an advanced permissions or any permissions for Owner?

Is this true. Seems like it would be a little silly to literally add every user on the site to permissions to in effect have "Owner" permissions.

Figured I would ask before embarking on silliness.

EDIT: I won't be responding until seis de mayo!

mkly
 
andrewsturm replied on at Permalink Reply
I think it's a great idea!

I've run into a wall with advanced permissions not having "Owner" permissions.

I'm trying to find a way to give newly registered users permissions to an area within a new page. If I could just set owner's permissions on the page's defaults...

If you have any more thoughts on this, I am totally interested!
andrewsturm replied on at Permalink Reply
The closest I've come to figuring this out, is to override "page.php" and add another conditional like one of these:
line: 380ish
if (isset($px->administrators)) {
   $permissions = Permissions::buildPermissionsFromArray($px->administrators);
   $q = "delete from PagePermissions where cID = '{$this->cID}' and gID = " . ADMIN_GROUP_ID;
   $r = $db->query($q);
   if ($permissions != '') {
      $v = array($this->cID, ADMIN_GROUP_ID, $permissions, $px->administrators['cgStartDate'], $px->administrators['cgEndDate']);
      $q = "insert into PagePermissions (cID, gID, cgPermissions, cgStartDate, cgEndDate) values (?, ?, ?, ?, ?)";
      $db->query($q, $v);
   }
}

Could "owner" (with some effort) work like "$px->administrators" ?
if (isset($px->owner)) {
   $permissions = Permissions::buildPermissionsFromArray($px->owner);
   $q = "delete from PagePermissions where cID = '{$this->cID}' and gID = " . ??? OWNER_GROUP_ID ???;
   $r = $db->query($q);
   if ($permissions != '') {
      $v = array($this->cID, OWNER_GROUP_ID, $permissions, $px->owner['cgStartDate'], $px->owner['cgEndDate']);
      $q = "insert into PagePermissions (cID, gID, cgPermissions, cgStartDate, cgEndDate) values (?, ?, ?, ?, ?)";
      $db->query($q, $v);
   }
}


What else needs to change besides adding another one of those??

Does anyone know where the guest/registered/group/admin originates from. Is it permissions.php or is there another model/controller I should look at?


Any Ideas?
cursal replied on at Permalink Reply
cursal
No answers....Really...
Did you ever embark on this "Silliness", mkly?