Skip to content

Commit 5f27772

Browse files
committed
feat: add RLS filters for event_sink tables
1 parent f63fd4f commit 5f27772

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tutoraspects/patches/superset-row-level-security

+24
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,27 @@
7070
"clause": {% raw %}'{{can_view_courses(current_username(), "course_key")}}',{% endraw %}
7171
"filter_type": "Regular"
7272
},
73+
{
74+
"schema": "{{ASPECTS_EVENT_SINK_DATABASE}}",
75+
"table_name": "course_names",
76+
"role_name": "{{SUPERSET_ROLES_MAPPING.instructor}}",
77+
"group_key": "{{SUPERSET_ROW_LEVEL_SECURITY_XAPI_GROUP_KEY}}",
78+
"clause": {% raw %}'{{can_view_courses(current_username(), "course_key")}}',{% endraw %}
79+
"filter_type": "Regular"
80+
},
81+
{
82+
"schema": "{{ASPECTS_EVENT_SINK_DATABASE}}",
83+
"table_name": "course_overviews",
84+
"role_name": "{{SUPERSET_ROLES_MAPPING.instructor}}",
85+
"group_key": "{{SUPERSET_ROW_LEVEL_SECURITY_XAPI_GROUP_KEY}}",
86+
"clause": {% raw %}'{{can_view_courses(current_username(), "course_key")}}',{% endraw %}
87+
"filter_type": "Regular"
88+
},
89+
{
90+
"schema": "{{ASPECTS_EVENT_SINK_DATABASE}}",
91+
"table_name": "course_blocks",
92+
"role_name": "{{SUPERSET_ROLES_MAPPING.instructor}}",
93+
"group_key": "{{SUPERSET_ROW_LEVEL_SECURITY_XAPI_GROUP_KEY}}",
94+
"clause": {% raw %}'{{can_view_courses(current_username(), "course_key")}}',{% endraw %}
95+
"filter_type": "Regular"
96+
},

0 commit comments

Comments
 (0)