Browse Source

Do not show schemas from other apps.

pull/248/head
Sebastian Stehle 8 years ago
parent
commit
7d2cd0897d
  1. 2
      src/Squidex.Domain.Apps.Entities/AppProvider.cs

2
src/Squidex.Domain.Apps.Entities/AppProvider.cs

@ -92,7 +92,7 @@ namespace Squidex.Domain.Apps.Entities
{ {
var schema = await stateFactory.GetSingleAsync<SchemaDomainObject>(id); var schema = await stateFactory.GetSingleAsync<SchemaDomainObject>(id);
if (!IsFound(schema)) if (!IsFound(schema) || schema.Snapshot.IsDeleted || schema.Snapshot.AppId != appId)
{ {
return null; return null;
} }

Loading…
Cancel
Save