FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
A2API/apps/admin/sql/patch_Call_access.sql at main · APIJSON/A2API · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
APIJSON
/
A2API
Public
forked from
TommyLemon/A2API
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
A2API
/
apps
/
admin
/
sql
/
patch_Call_access.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (33 loc) · 1.34 KB
Breadcrumbs
A2API
/
apps
/
admin
/
sql
/
patch_Call_access.sql
Copy path
File metadata and controls
37 lines (33 loc) · 1.34 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--
Fix Call Access: id 9002 was reused by Apply alias Apply, wiping Call GET rights.
--
Run against APIJSON Demo DB, then reload Access (or restart APIJSON).
DELETE
FROM
`
Access
`
WHERE
`
id
`
=
9003
OR
`
alias
`
=
'
Call
'
OR
(
`
name
`
=
'
Call
'
AND
(
`
alias
`
IS
NULL
OR
`
alias
`
=
'
'
OR
`
alias
`
=
'
Call
'
));
--
Remove stale Call row that incorrectly occupied 9002 (keep Apply on 9002).
DELETE
FROM
`
Access
`
WHERE
`
id
`
=
9002
AND
(
`
alias
`
=
'
Call
'
OR
`
name
`
=
'
Call
'
);
INSERT INTO
`
Access
`
(
`
id
`
,
`
debug
`
,
`
schema
`
,
`
name
`
,
`
alias
`
,
`
get
`
,
`
head
`
,
`
gets
`
,
`
heads
`
,
`
post
`
,
`
put
`
,
`
delete
`
,
`
date
`
,
`
detail
`
)
VALUES
(
9003
,
0
,
NULL
,
'
Call
'
,
'
Call
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["ADMIN"]
'
,
'
["ADMIN"]
'
,
NOW(),
'
A2API APIJSON call logs
'
);
DELETE
FROM
`
Request
`
WHERE
`
id
`
IN
(
9003001
,
9003002
,
9003003
)
OR
`
tag
`
=
'
Call
'
;
INSERT INTO
`
Request
`
(
`
id
`
,
`
debug
`
,
`
version
`
,
`
method
`
,
`
tag
`
,
`
structure
`
,
`
detail
`
,
`
date
`
)
VALUES
(
9003001
,
0
,
1
,
'
POST
'
,
'
Call
'
,
'
{"MUST":"id,operation,method,url,ok","INSERT":{"@role":"LOGIN"}}
'
,
'
Create A2API Call log
'
, NOW()),
(
9003002
,
0
,
1
,
'
PUT
'
,
'
Call
'
,
'
{"MUST":"id","INSERT":{"@role":"ADMIN"}}
'
,
'
Update Call log
'
, NOW()),
(
9003003
,
0
,
1
,
'
GETS
'
,
'
Call
'
,
'
{}
'
,
'
List Call logs
'
, NOW());
Back
|
FazBrowse Home
|
New Git URL