summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-10 23:12:38 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-10 23:12:38 -0400
commita0227cad69aff9486fba1d7b2a19e6da97450100 (patch)
treee4585be087759022b8a3d0108eacff3494da470e /app/Model
parent44f680cf2f1463721eb5bdb7eda4d3b339e63ba9 (diff)
Define only what is allowed for column restrictions
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/ColumnMoveRestrictionModel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/ColumnMoveRestrictionModel.php b/app/Model/ColumnMoveRestrictionModel.php
index aae1a391..27c9afab 100644
--- a/app/Model/ColumnMoveRestrictionModel.php
+++ b/app/Model/ColumnMoveRestrictionModel.php
@@ -25,7 +25,7 @@ class ColumnMoveRestrictionModel extends Base
*/
public function isAllowed($project_id, $role, $src_column_id, $dst_column_id)
{
- return ! $this->db->table(self::TABLE)
+ return $this->db->table(self::TABLE)
->left(ProjectRoleModel::TABLE, 'pr', 'role_id', self::TABLE, 'role_id')
->eq(self::TABLE.'.project_id', $project_id)
->eq(self::TABLE.'.src_column_id', $src_column_id)