Name
global.sc_ic_SectionSecurityManager
Description
Security manager for the sc_ic_section table
Script
var sc_ic_SectionSecurityManager = Class.create();
sc_ic_SectionSecurityManager.prototype = Object.extendsObject(sc_ic_SecurityManager, {
/** Returns false. Subclasses should define when creation should be allowed */
canCreate: function() {
return gs.hasRole(sc_.CATALOG_ADMIN) || gs.hasRole(sc_ic.CATALOG_MANAGER) || gs.hasRole(sc_ic.CATALOG_EDITOR);
},
/** Returns false. Subclasses should define when reading should be allowed */
canRead: function() {
if (gs.hasRole(sc_.CATALOG_ADMIN))
return true;
return sc_ic_Factory.getSecurityManager(this._gr[sc_ic.ITEM_STAGING].getRefRecord()).canRead();
},
/** Returns false. Subclasses should define when updating should be allowed */
canUpdate: function() {
return sc_ic_Factory.getSecurityManager(this._gr[sc_ic.ITEM_STAGING].getRefRecord()).canUpdate();
},
/** Returns false. Subclasses should define when deleting should be allowed */
canDelete: function() {
return sc_ic_Factory.getSecurityManager(this._gr[sc_ic.ITEM_STAGING].getRefRecord()).canUpdate();
},
type: "sc_ic_SectionSecurityManager"
});
Sys ID
297f41fceb1311003623666cd206fe5e