Page MenuHomePhabricator

Calendar events should have edit/view policies
ClosedPublic

Authored by lpriestley on Apr 30 2015, 9:33 PM.
Tags
None
Referenced Files
F14098632: D12632.diff
Tue, Nov 26, 9:40 AM
Unknown Object (File)
Sat, Nov 23, 5:26 AM
Unknown Object (File)
Tue, Nov 19, 1:24 AM
Unknown Object (File)
Tue, Nov 5, 8:19 PM
Unknown Object (File)
Mon, Nov 4, 9:14 PM
Unknown Object (File)
Oct 16 2024, 7:05 AM
Unknown Object (File)
Oct 16 2024, 5:54 AM
Unknown Object (File)
Oct 15 2024, 7:16 AM
Subscribers

Details

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.

Diff Detail

Repository
rP Phabricator
Branch
calendareventeditviewpolicies
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 5626
Build 5645: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

lpriestley retitled this revision from to Calendar events should have edit/view policies.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
37–38

These shouldn't be necessary, since initializeNewCalendarEvent() sets them for you automatically.

src/applications/calendar/storage/PhabricatorCalendarEvent.php
255–257

This could be omitted to slightly simplify things, since we'll just hit the return false; below anyway.

This revision is now accepted and ready to land.Apr 30 2015, 9:39 PM
lpriestley marked 2 inline comments as done.
lpriestley edited edge metadata.

Cleanup.

This revision was automatically updated to reflect the committed changes.