Fixed default safety

This commit is contained in:
Marcin Kurczewski 2013-10-28 11:26:45 +01:00
parent 9e6716021a
commit e2e9d9bf13

View file

@ -49,7 +49,7 @@ class Model_User extends AbstractModel
{
$all = $this->getSetting(self::SETTING_SAFETY);
if (!$all)
return $safety == PostSafety::toFlag(PostSafety::Safe);
return $safety == PostSafety::Safe;
return $all & PostSafety::toFlag($safety);
}