Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/storage/PhabricatorUserPreferences.php
| Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | public function hasManagedUser() { | ||||
| $user = $this->getUser(); | $user = $this->getUser(); | ||||
| if ($user->getIsSystemAgent() || $user->getIsMailingList()) { | if ($user->getIsSystemAgent() || $user->getIsMailingList()) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| // TODO: Remove this once all edits go through the Editor. For now, some | |||||
| // old edits just do direct saves so make sure we nuke the cache. | |||||
| public function save() { | |||||
| PhabricatorUserCache::clearCache( | |||||
| PhabricatorUserPreferencesCacheType::KEY_PREFERENCES, | |||||
| $this->getUserPHID()); | |||||
| return parent::save(); | |||||
| } | |||||
| /* -( PhabricatorPolicyInterface )----------------------------------------- */ | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
| public function getCapabilities() { | public function getCapabilities() { | ||||
| return array( | return array( | ||||
| PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
| PhabricatorPolicyCapability::CAN_EDIT, | PhabricatorPolicyCapability::CAN_EDIT, | ||||
| ▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines | |||||