Apply column restrictions to the board
This commit is contained in:
@@ -4,6 +4,7 @@ namespace Kanboard\ServiceProvider;
|
||||
|
||||
use Kanboard\Core\Cache\FileCache;
|
||||
use Kanboard\Core\Cache\MemoryCache;
|
||||
use Kanboard\Decorator\ColumnMoveRestrictionCacheDecorator;
|
||||
use Kanboard\Decorator\MetadataCacheDecorator;
|
||||
use Pimple\Container;
|
||||
use Pimple\ServiceProviderInterface;
|
||||
@@ -46,6 +47,13 @@ class CacheProvider implements ServiceProviderInterface
|
||||
);
|
||||
};
|
||||
|
||||
$container['columnMoveRestrictionCacheDecorator'] = function($c) {
|
||||
return new ColumnMoveRestrictionCacheDecorator(
|
||||
$c['memoryCache'],
|
||||
$c['columnMoveRestrictionModel']
|
||||
);
|
||||
};
|
||||
|
||||
return $container;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ class ClassProvider implements ServiceProviderInterface
|
||||
'CategoryModel',
|
||||
'ColorModel',
|
||||
'ColumnModel',
|
||||
'ColumnMoveRestrictionModel',
|
||||
'CommentModel',
|
||||
'ConfigModel',
|
||||
'CurrencyModel',
|
||||
@@ -55,6 +56,7 @@ class ClassProvider implements ServiceProviderInterface
|
||||
'ProjectNotificationModel',
|
||||
'ProjectMetadataModel',
|
||||
'ProjectGroupRoleModel',
|
||||
'ProjectRoleModel',
|
||||
'ProjectTaskDuplicationModel',
|
||||
'ProjectTaskPriorityModel',
|
||||
'ProjectUserRoleModel',
|
||||
|
||||
Reference in New Issue
Block a user