Added scope check
This commit is contained in:
parent
33573dda34
commit
49207a8624
53 changed files with 107 additions and 62 deletions
|
@ -55,7 +55,7 @@
|
|||
use Friendica\Database\DBA;
|
||||
|
||||
if (!defined('DB_UPDATE_VERSION')) {
|
||||
define('DB_UPDATE_VERSION', 1417);
|
||||
define('DB_UPDATE_VERSION', 1418);
|
||||
}
|
||||
|
||||
return [
|
||||
|
@ -439,6 +439,7 @@ return [
|
|||
"read" => ["type" => "boolean", "comment" => "Read scope"],
|
||||
"write" => ["type" => "boolean", "comment" => "Write scope"],
|
||||
"follow" => ["type" => "boolean", "comment" => "Follow scope"],
|
||||
"push" => ["type" => "boolean", "comment" => "Push scope"],
|
||||
],
|
||||
"indexes" => [
|
||||
"PRIMARY" => ["id"],
|
||||
|
@ -457,6 +458,7 @@ return [
|
|||
"read" => ["type" => "boolean", "comment" => "Read scope"],
|
||||
"write" => ["type" => "boolean", "comment" => "Write scope"],
|
||||
"follow" => ["type" => "boolean", "comment" => "Follow scope"],
|
||||
"push" => ["type" => "boolean", "comment" => "Push scope"],
|
||||
],
|
||||
"indexes" => [
|
||||
"PRIMARY" => ["application-id", "uid"],
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
"read" => ["application-token", "read"],
|
||||
"write" => ["application-token", "write"],
|
||||
"follow" => ["application-token", "follow"],
|
||||
"push" => ["application-token", "push"],
|
||||
],
|
||||
"query" => "FROM `application-token`
|
||||
INNER JOIN `application` ON `application-token`.`application-id` = `application`.`id`"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue