mirror of
https://github.com/simonw/datasette.git
synced 2026-06-03 15:46:59 +02:00
set-column-types permission, refs #2671
This commit is contained in:
parent
feaba9b18b
commit
bee25f58cb
5 changed files with 64 additions and 2 deletions
|
|
@ -831,6 +831,22 @@ PermConfigTestCase = collections.namedtuple(
|
|||
resource=("perms_ds_one", "t1"),
|
||||
expected_result=True,
|
||||
),
|
||||
# set-column-types on specific table
|
||||
PermConfigTestCase(
|
||||
config={
|
||||
"databases": {
|
||||
"perms_ds_one": {
|
||||
"tables": {
|
||||
"t1": {"permissions": {"set-column-types": {"id": "user"}}}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
actor={"id": "user"},
|
||||
action="set-column-types",
|
||||
resource=("perms_ds_one", "t1"),
|
||||
expected_result=True,
|
||||
),
|
||||
# insert-row on database
|
||||
PermConfigTestCase(
|
||||
config={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue