mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR: Removed redundant code
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65233 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
59d9f2b3d8
commit
cac5594e35
@ -295,13 +295,6 @@ HTML;
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
// @todo: These workflow features aren't really appropriate for all projects
|
|
||||||
if( Member::currentUser()->isAdmin() && project() == 'mot' ) {
|
|
||||||
$fields->addFieldsToTab( 'Root.Workflow', new DropdownField("Owner", _t('AssetAdmin.OWNER','Owner'), Member::map() ) );
|
|
||||||
$fields->addFieldsToTab( 'Root.Workflow', new TreeMultiselectField("CanUse", _t('AssetAdmin.CONTENTUSABLEBY','Content usable by')) );
|
|
||||||
$fields->addFieldsToTab( 'Root.Workflow', new TreeMultiselectField("CanEdit", _t('AssetAdmin.CONTENTMODBY','Content modifiable by')) );
|
|
||||||
}
|
|
||||||
|
|
||||||
if( !$record->userCanEdit() )
|
if( !$record->userCanEdit() )
|
||||||
$form->makeReadonly();
|
$form->makeReadonly();
|
||||||
|
|
||||||
|
@ -29,9 +29,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
);
|
);
|
||||||
|
|
||||||
public function init() {
|
public function init() {
|
||||||
// Check permissions
|
|
||||||
// if(!Member::currentUser() || !Member::currentUser()->isAdmin()) Security::permissionFailure($this);
|
|
||||||
|
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
Requirements::javascript(THIRDPARTY_DIR . "/hover.js");
|
Requirements::javascript(THIRDPARTY_DIR . "/hover.js");
|
||||||
|
Loading…
Reference in New Issue
Block a user