diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index 9d38bdfb..40230792 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -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(); diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index 7e72c25a..d2a1c25b 100644 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -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");