현재 작업 전체 반영
This commit is contained in:
parent
5560638e54
commit
c0dddab594
85 changed files with 11322 additions and 539 deletions
|
|
@ -283,6 +283,22 @@ CREATE POLICY p_case_select ON app.case_profile FOR SELECT USING (
|
|||
OR app.current_role_name() IN ('admin','instructor')
|
||||
OR learner_id = app.current_uid()
|
||||
);
|
||||
DROP POLICY IF EXISTS p_case_insert ON app.case_profile;
|
||||
CREATE POLICY p_case_insert ON app.case_profile FOR INSERT WITH CHECK (
|
||||
app.is_ai_context()
|
||||
OR app.current_role_name() IN ('admin','instructor')
|
||||
OR learner_id = app.current_uid()
|
||||
);
|
||||
DROP POLICY IF EXISTS p_case_update ON app.case_profile;
|
||||
CREATE POLICY p_case_update ON app.case_profile FOR UPDATE USING (
|
||||
app.is_ai_context()
|
||||
OR app.current_role_name() IN ('admin','instructor')
|
||||
OR learner_id = app.current_uid()
|
||||
) WITH CHECK (
|
||||
app.is_ai_context()
|
||||
OR app.current_role_name() IN ('admin','instructor')
|
||||
OR learner_id = app.current_uid()
|
||||
);
|
||||
|
||||
ALTER TABLE app.pinned_fact ENABLE ROW LEVEL SECURITY;
|
||||
DROP POLICY IF EXISTS p_pinned_select ON app.pinned_fact;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue