From a0227cad69aff9486fba1d7b2a19e6da97450100 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 10 Sep 2016 23:12:38 -0400 Subject: Define only what is allowed for column restrictions --- app/Model/ColumnMoveRestrictionModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model') 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) -- cgit v1.2.3