mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix projects
This commit is contained in:
@@ -322,7 +322,7 @@ Http::init()
|
||||
* For console projects resource, we use platform DB.
|
||||
* Enabling authorization restricts admin user to the projects they have access to.
|
||||
*/
|
||||
if ($project->getId() === 'console' && str_starts_with($route->getPath(), '/v1/projects')) {
|
||||
if ($project->getId() === 'console' && ($route->getPath() === '/v1/projects' || $route->getPath() === '/v1/projects/:projectId')) {
|
||||
$authorization->setDefaultStatus(true);
|
||||
} else {
|
||||
// Otherwise, disable authorization checks.
|
||||
|
||||
Reference in New Issue
Block a user