projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #13390 from MegaphoneJon/core-609
[civicrm-core.git]
/
js
/
Common.js
diff --git
a/js/Common.js
b/js/Common.js
index c6171f19c98e768cd5af6f658d0676434b2704d9..de326cda0e367aa6c7e91e8e0b2eb82e5e5f899a 100644
(file)
--- a/
js/Common.js
+++ b/
js/Common.js
@@
-1497,7
+1497,7
@@
if (!CRM.vars) CRM.vars = {};
// Determine if a user has a given permission.
// @see CRM_Core_Resources::addPermissions
CRM.checkPerm = function(perm) {
- return CRM.permissions[perm];
+ return CRM.permissions
&& CRM.permissions
[perm];
};
// Round while preserving sigfigs