Skip to content

Commit

Permalink
added permissions to preview (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes authored and alexander-schranz committed May 10, 2017
1 parent 4754cc5 commit 7011ebb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

define([
'underscore',
'config',
'services/suluarticle/article-manager',
'services/sulupreview/preview'
], function(_, ArticleManager, Preview) {
], function(_, Config, ArticleManager, Preview) {

'use strict';

Expand All @@ -34,7 +35,7 @@ define([
pageData = {id: pageData.id};
}

var preview = Preview.initialize({});
var preview = Preview.initialize(Config.get('sulu_security.contexts')['sulu.modules.articles']);
preview.start(
'Sulu\\Bundle\\ArticleBundle\\Document\\ArticlePageDocument',
pageData.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

define([
'underscore',
'config',
'services/suluarticle/article-manager',
'services/sulupreview/preview'
], function(_, ArticleManager, Preview) {
], function(_, Config, ArticleManager, Preview) {

'use strict';

Expand All @@ -22,7 +23,7 @@ define([
pageData = {id: pageData.id};
}

var preview = Preview.initialize({});
var preview = Preview.initialize(Config.get('sulu_security.contexts')['sulu.modules.articles']);
preview.start(
'Sulu\\Bundle\\ArticleBundle\\Document\\ArticleDocument',
pageData.id,
Expand Down

0 comments on commit 7011ebb

Please sign in to comment.