Commit 9e6b6622 authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Prevent opening of deactivated gallery apps via direct link

Change-Id: Id0c8145f73cdd17c9d5d275cbb2b5112780a3754
parent 3ca10de1
...@@ -616,7 +616,7 @@ public class Ode implements EntryPoint { ...@@ -616,7 +616,7 @@ public class Ode implements EntryPoint {
MESSAGES.galleryError()) { MESSAGES.galleryError()) {
@Override @Override
public void onSuccess(GalleryApp app) { public void onSuccess(GalleryApp app) {
if (app == null) { if (app == null || !app.getActive()) {
Window.alert(MESSAGES.galleryIdNotExist()); Window.alert(MESSAGES.galleryIdNotExist());
// Reset the galleryId flag and then load the previous project // Reset the galleryId flag and then load the previous project
galleryIdLoadingFlag = false; galleryIdLoadingFlag = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment