mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-29 17:00:59 +01:00
11e8e60245
Summary: Closes T7940, Calendar events should have edit/view policies. Test Plan: Create new event and save, event should be only visible and editable by creator. Editing policies should correctly set the permissions of editing/viewing the event. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T7940 Differential Revision: https://secure.phabricator.com/D12632
11 lines
354 B
SQL
11 lines
354 B
SQL
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
|
|
ADD viewPolicy varbinary(64) NOT NULL;
|
|
|
|
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
|
|
ADD editPolicy varbinary(64) NOT NULL;
|
|
|
|
UPDATE {$NAMESPACE}_calendar.calendar_event
|
|
SET viewPolicy = 'users' WHERE viewPolicy = '';
|
|
|
|
UPDATE {$NAMESPACE}_calendar.calendar_event
|
|
SET editPolicy = userPHID;
|