git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make tenantview method reslient of users with no site, catch users with no site in...
[plstackapi.git]
/
planetstack
/
core
/
xoslib
/
static
/
js
/
xosTenant.js
diff --git
a/planetstack/core/xoslib/static/js/xosTenant.js
b/planetstack/core/xoslib/static/js/xosTenant.js
index
96465d3
..
9c45460
100644
(file)
--- a/
planetstack/core/xoslib/static/js/xosTenant.js
+++ b/
planetstack/core/xoslib/static/js/xosTenant.js
@@
-299,6
+299,9
@@
XOSTenantApp.sanityCheck = function() {
if (xos.tenant().blessed_sites.length == 0) {
\r
errors.push("no blessed sites");
\r
}
\r
if (xos.tenant().blessed_sites.length == 0) {
\r
errors.push("no blessed sites");
\r
}
\r
+ if (xos.tenant().current_user_site_id == null) {
\r
+ errors.push("current user does not have a site");
\r
+ }
\r
\r
if (errors.length > 0) {
\r
$("#tenantSummary").html("Tenant view sanity check failed<br>" + errors.join("<br>"));
\r
\r
if (errors.length > 0) {
\r
$("#tenantSummary").html("Tenant view sanity check failed<br>" + errors.join("<br>"));
\r