Skip to content

Commit 889571b

Browse files
committed
allow read, fix userId
1 parent a9e2c81 commit 889571b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/ProfileServer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ public static function generateDefaultAcl() {
101101
a acl:Authorization;
102102
acl:agentClass foaf:Agent;
103103
acl:accessTo <./>;
104-
acl:mode acl:Read.
104+
# All resources will inherit this authorization, by default
105+
acl:default <./>;
106+
acl:mode acl:Read.
105107
106108
# The owner has full access to every resource in their pod.
107109
# Other agents have no access rights,
@@ -123,7 +125,7 @@ public static function generateDefaultAcl() {
123125
public static function generateDefaultProfile() {
124126
$user = self::getOwner();
125127
if (!isset($user['storage']) || !$user['storage']) {
126-
$user['storage'] = "https://storage-" . $userId . "." . BASEDOMAIN . "/";
128+
$user['storage'] = "https://storage-" . self::getProfileId() . "." . BASEDOMAIN . "/";
127129
}
128130
if (is_array($user['storage'])) { // empty array is already handled
129131
$user['storage'] = array_values($user['storage'])[0]; // FIXME: Handle multiple storage pods

0 commit comments

Comments
 (0)