Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit b2e70c0

Browse files
committed
Repository securityScope() : check the CONTAINER option if it exists for object-based drivers.
1 parent 783e094 commit b2e70c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/core/classes/class.Repository.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,12 @@ public function getDescription( $public = false, $ownerLabel = null )
616616
*/
617617
public function securityScope()
618618
{
619+
$path = $this->getOption("CONTAINER", true);
620+
if(!empty($path)){
621+
if(strpos($path, "AJXP_USER") !== false) return "USER";
622+
if(strpos($path, "AJXP_GROUP_PATH") !== false) return "GROUP";
623+
if(strpos($path, "AJXP_GROUP_PATH_FLAT") !== false) return "GROUP";
624+
}
619625
$path = $this->getOption("PATH", true);
620626
if($this->accessType == "ajxp_conf") return "USER";
621627
if(empty($path)) return false;

0 commit comments

Comments
 (0)