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:
Sam Minnee 2008-11-04 23:31:42 +00:00
parent 59d9f2b3d8
commit cac5594e35
2 changed files with 0 additions and 10 deletions

View File

@ -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() )
$form->makeReadonly();

View File

@ -29,9 +29,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
);
public function init() {
// Check permissions
// if(!Member::currentUser() || !Member::currentUser()->isAdmin()) Security::permissionFailure($this);
parent::init();
Requirements::javascript(THIRDPARTY_DIR . "/hover.js");