User profile controls that hide non-sales features from users outside sales
This commit is contained in:
@@ -32,6 +32,7 @@ function setup() {
|
||||
const copied = [];
|
||||
const app = loadApplication("content", { document, window, setTimeout, clearTimeout,
|
||||
navigator: { clipboard: { writeText: async value => copied.push(value) } } });
|
||||
app.currentUser.allowsCrmActivities = () => true;
|
||||
// Keep the copy test independent of the toast's own DOM/timer implementation.
|
||||
modal.querySelector = () => ({ classList: { toggle() {} } });
|
||||
window.setTimeout = () => 0;
|
||||
|
||||
Reference in New Issue
Block a user