Rev 1436 | Rev 1444 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1436 | Rev 1440 | ||
---|---|---|---|
Line 643... | Line 643... | ||
643 | throw new OIDplusException(_L('You can use the WEID syntax only at your object tree root.')); |
643 | throw new OIDplusException(_L('You can use the WEID syntax only at your object tree root.')); |
644 | } |
644 | } |
645 | } |
645 | } |
646 | } |
646 | } |
647 | 647 | ||
- | 648 | // TODO: Forbid shared ancestors, e.g. if root obejct "2.999" exists, then you shall not create a root object "2.999.1" |
|
- | 649 | // Please note that it should be allowed where there is an orphan in between, e.g. it is OK if "2.999" is owned by us (as root), and "2.999.1.2.3" is also a root (because an ownership was transferred back to us) |
|
- | 650 | ||
648 | // Determine absolute OID name |
651 | // Determine absolute OID name |
649 | // Note: At addString() and parse(), the syntax of the ID will be checked |
652 | // Note: At addString() and parse(), the syntax of the ID will be checked |
650 | if (oidplus_is_true($params['id_fully_qualified'] ?? false)) { |
653 | if (oidplus_is_true($params['id_fully_qualified'] ?? false)) { |
651 | // For REST API, the ID is absolute (because this is what is in the URL). We need to verify that ID and Parent matches. |
654 | // For REST API, the ID is absolute (because this is what is in the URL). We need to verify that ID and Parent matches. |
652 | $id = $params['id']; |
655 | $id = $params['id']; |