Add project restrictions for custom roles
This commit is contained in:
@@ -45,14 +45,14 @@ class ColumnMoveRestrictionController extends BaseController
|
||||
list($valid, $errors) = $this->columnMoveRestrictionValidator->validateCreation($values);
|
||||
|
||||
if ($valid) {
|
||||
$role_id = $this->columnMoveRestrictionModel->create(
|
||||
$restriction_id = $this->columnMoveRestrictionModel->create(
|
||||
$project['id'],
|
||||
$values['role_id'],
|
||||
$values['src_column_id'],
|
||||
$values['dst_column_id']
|
||||
);
|
||||
|
||||
if ($role_id !== false) {
|
||||
if ($restriction_id !== false) {
|
||||
$this->flash->success(t('The column restriction has been created successfully.'));
|
||||
} else {
|
||||
$this->flash->failure(t('Unable to create this column restriction.'));
|
||||
|
||||
Reference in New Issue
Block a user