MissionAccessUtil Class Reference

Static Public Member Functions

static resolveCanCurrentUserWriteOrDeleteMission (Mission $mission)

Detailed Description

Used by controller actions to determine if a user should be able to access a mission. This is required because even though read/write is added to the everyone group, we only want the owner to be able to edit or delete a mission.

Definition at line 42 of file MissionAccessUtil.php.

Member Function Documentation

static resolveCanCurrentUserWriteOrDeleteMission ( Mission mission  )  [static]

Only the owner of a mission can edit a mission.

Mission $mission

Definition at line 48 of file MissionAccessUtil.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Mar 26 07:10:26 2017