Issue Bug Closed

#28313Javascript-Error when be_user has no access to module "Workspaces"

Christian Baer 07/19/11, 13:46 updated 12/10/13, 01:05

Description

There is a JS-Error coming from that scenario:

- be_user has no access to module “Workspaces“
- then the link to the Workspace-module is not rendered into DOM
- then in the file typo3/sysext/workspaces/Resources/Public/JavaScript/workspacemenu.js, there is this line:

Event.observe(‘goToWsModule’, ‘click’, this.goToWorkspaceModule.bind(this));

- this produces the js-error: “_prototypeEventID not defined”

Solution (patch):

if(Ext.getBody().is(‘#goToWsModule’)){
Event.observe(‘goToWsModule’, ‘click’, this.goToWorkspaceModule.bind(this));
}

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.