1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00

Updated and synced public available scopes

This commit is contained in:
Eldad Fux 2020-01-12 13:46:39 +02:00
parent 327b82dffc
commit f77aa39ff7
5 changed files with 26 additions and 33 deletions

View file

@ -46,6 +46,9 @@ $admins = [
'tasks.write',
'webhooks.read',
'webhooks.write',
'locale.read',
'avatars.read',
'health.read',
];
return [

View file

@ -11,12 +11,14 @@ return [ // List of publicly visible scopes
'documents.write',
'files.read',
'files.write',
'platforms.read',
'platforms.write',
'keys.read',
'keys.write',
'tasks.read',
'tasks.write',
'webhooks.read',
'webhooks.write',
// 'platforms.read',
// 'platforms.write',
// 'keys.read',
// 'keys.write',
// 'tasks.read',
// 'tasks.write',
// 'webhooks.read',
// 'webhooks.write',
'locale.read',
'avatars.read',
];;

View file

@ -18,18 +18,7 @@ use Cron\CronExpression;
include_once __DIR__ . '/../shared/api.php';
$scopes = [ // TODO sync with console UI list
'users.read',
'users.write',
'teams.read',
'teams.write',
'collections.read',
'collections.write',
'documents.read',
'documents.write',
'files.read',
'files.write',
];
$scopes = include __DIR__.'/../../../app/config/scopes.php';
$utopia->get('/v1/projects')
->desc('List Projects')

View file

@ -1,17 +1,5 @@
<?php
$scopes = [ // TODO sync with project list
'users.read',
'users.write',
'teams.read',
'teams.write',
'collections.read',
'collections.write',
'documents.read',
'documents.write',
'files.read',
'files.write',
];
$scopes = $this->getParam('scopes', []);
?>
<div class="cover margin-bottom-large">
<h1 class="zone xl margin-bottom-large margin-top">

View file

@ -90,7 +90,18 @@ trait ProjectCustom
], [
'name' => 'Demo Project Key',
'scopes' => [
'users.read',
'users.write',
'teams.read',
'teams.write',
'collections.read',
'collections.write',
'documents.read',
'documents.write',
'files.read',
'files.write',
'locale.read',
'avatars.read',
],
]);