diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-10-27 16:16:11 -0700 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-10-27 16:16:11 -0700 |
commit | cc6618901bc927558dc159ac0dbec1159231c5f1 (patch) | |
tree | f1c14931ab88c0056e538e6d62cd1fa667d94a0d /app/Model/UserNotificationModel.php | |
parent | 0b9c3b0a5b61a61faf9061e040e072e4b198f6d2 (diff) |
Remove feature "Allow everybody to access to this project"
Diffstat (limited to 'app/Model/UserNotificationModel.php')
-rw-r--r-- | app/Model/UserNotificationModel.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/app/Model/UserNotificationModel.php b/app/Model/UserNotificationModel.php index d77526f6..9e90cf5d 100644 --- a/app/Model/UserNotificationModel.php +++ b/app/Model/UserNotificationModel.php @@ -68,10 +68,6 @@ class UserNotificationModel extends Base */ public function getUsersWithNotificationEnabled($project_id, $exclude_user_id = 0) { - if ($this->projectPermissionModel->isEverybodyAllowed($project_id)) { - return $this->getEverybodyWithNotificationEnabled($exclude_user_id); - } - $users = array(); $members = $this->getProjectUserMembersWithNotificationEnabled($project_id, $exclude_user_id); $groups = $this->getProjectGroupMembersWithNotificationEnabled($project_id, $exclude_user_id); @@ -183,22 +179,4 @@ class UserNotificationModel extends Base ->eq(UserModel::TABLE.'.is_active', 1) ->findAll(); } - - /** - * Get a list of project members with notification enabled - * - * @access private - * @param integer $exclude_user_id User id to exclude - * @return array - */ - private function getEverybodyWithNotificationEnabled($exclude_user_id) - { - return $this->db - ->table(UserModel::TABLE) - ->columns(UserModel::TABLE.'.id', UserModel::TABLE.'.username', UserModel::TABLE.'.name', UserModel::TABLE.'.email', UserModel::TABLE.'.language', UserModel::TABLE.'.notifications_filter') - ->eq('notifications_enabled', '1') - ->neq(UserModel::TABLE.'.id', $exclude_user_id) - ->eq(UserModel::TABLE.'.is_active', 1) - ->findAll(); - } } |