Merge pull request #431 from DasNerdherder/master

Fixed #415 Non-Admin profile can access Dashboard
This commit is contained in:
Luke 2013-08-27 13:03:52 -07:00
commit a48b9102d8

View File

@ -1124,6 +1124,7 @@ Dashboard.jQueryMobileInit();
$(document).on('pagebeforeshow', ".page", function () {
var page = $(this);
var pageId = this.id;
var userId = Dashboard.getCurrentUserId();
ApiClient.currentUserId(userId);
@ -1147,6 +1148,8 @@ $(document).on('pagebeforeshow', ".page", function () {
if (user.Configuration.IsAdministrator) {
Dashboard.ensureToolsMenu(page);
} else if (pageId == "dashboardPage") {
window.location.replace("index.html");
}
Dashboard.ensureHeader(page, user);