mirror of
https://github.com/apache/superset.git
synced 2026-04-26 11:34:27 +00:00
fix: Alpha should not be able to edit datasets that they don't own (#19854)
* fix api for checking owners * fix styles for disabling * fix styles for disabling * fix lint * fix lint * add owners key * plzz * remove * update test * add tooltip * add type * fix test * fix user reference * lit * fix test * work
This commit is contained in:
@@ -48,6 +48,17 @@ const createProps = () => ({
|
||||
name: 'datasource',
|
||||
actions: {},
|
||||
isEditable: true,
|
||||
user: {
|
||||
createdOn: '2021-04-27T18:12:38.952304',
|
||||
email: 'admin',
|
||||
firstName: 'admin',
|
||||
isActive: true,
|
||||
lastName: 'admin',
|
||||
permissions: {},
|
||||
roles: { Admin: Array(173) },
|
||||
userId: 1,
|
||||
username: 'admin',
|
||||
},
|
||||
onChange: jest.fn(),
|
||||
onDatasourceSave: jest.fn(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user