Skip to content

Conversation

@q-u-o-s-a
Copy link

descendants issue

in function descendants($ID) the parameter $ID is set and causes issue in

$res = $this->{$this->type()}->descendantsConditional("ID=?", $ID, false);

$ID is interpreted as depth since

in PhpRbac/src/PhpRbac/core/lib/nestedset/full.php

it is set this way:

function descendantsConditional($ConditionString,$AbsoluteDepths=false);

=> recommand to make depth 2nd parameter to match with line 15 of PhpRbac/src/PhpRbac/core/lib/nestedset/full.php

  1. Condition
  2. Depht
  3. Rest

(WIP, should be also considered in function siblingConditional)

add omit in gitignore for jetbrains, vendor, composer.lock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant