File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22 namespace Pdsinterop \PhpSolid \Routes ;
33
4+ use Pdsinterop \PhpSolid \User ;
45 use Pdsinterop \PhpSolid \StorageServer ;
56 use Pdsinterop \PhpSolid \ClientRegistration ;
67 use Pdsinterop \PhpSolid \SolidNotifications ;
@@ -40,9 +41,11 @@ public static function respondToStorage() {
4041 $ origin = $ rawRequest ->getHeaderLine ("Origin " );
4142
4243 // FIXME: Read allowed clients from the profile instead;
43- $ owner = StorageServer::getOwner ();
44-
44+ // $owner = StorageServer::getOwner();
45+ $ ownerWebId = StorageServer::getOwnerWebId ();
46+ $ owner = User::getUserByWebId ($ ownerWebId );
4547 $ allowedClients = $ owner ['allowedClients ' ] ?? [];
48+
4649 $ allowedOrigins = TRUSTED_APPS ?? [];
4750 foreach ($ allowedClients as $ clientId ) {
4851 $ clientRegistration = ClientRegistration::getRegistration ($ clientId );
You can’t perform that action at this time.
0 commit comments