File inc/repo.inc.php changed (mode: 100644) (index 4a84433..bd79904) |
... |
... |
function rg_repo_admin_rights($db, $rg, $type) |
1511 |
1511 |
while ($a['edit_id'] > 0) { |
while ($a['edit_id'] > 0) { |
1512 |
1512 |
$owner = $rg['ri']['uid']; |
$owner = $rg['ri']['uid']; |
1513 |
1513 |
$r = rg_rights_get($db, $rg['ri']['repo_id'], $type, |
$r = rg_rights_get($db, $rg['ri']['repo_id'], $type, |
1514 |
|
$owner, $rg['login_ui']['uid'], $a['edit_id']); |
|
|
1514 |
|
$owner, -1, $a['edit_id']); |
1515 |
1515 |
if ($r['ok'] != 1) { |
if ($r['ok'] != 1) { |
1516 |
1516 |
$list_errmsg[] = "cannot load rights: " . rg_rights_error(); |
$list_errmsg[] = "cannot load rights: " . rg_rights_error(); |
1517 |
1517 |
break; |
break; |
|
... |
... |
function rg_repo_admin_rights($db, $rg, $type) |
1522 |
1522 |
break; |
break; |
1523 |
1523 |
} |
} |
1524 |
1524 |
|
|
1525 |
|
// Only one right is returned when we edit one |
|
|
1525 |
|
// Only one right is returned when we edit by right_id |
1526 |
1526 |
$a = $r['list'][0]; |
$a = $r['list'][0]; |
1527 |
1527 |
|
|
1528 |
1528 |
$load_defaults = 0; |
$load_defaults = 0; |