Skip to content

Commit

Permalink
Merge pull request #177 from dantleech/pwfextension
Browse files Browse the repository at this point in the history
PWFC extension changes
  • Loading branch information
lsmith77 committed Jun 12, 2013
2 parents 07759c7 + 1970869 commit 6eeed05
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ doctrine_phpcr:
- en
- de

cmf_core:
role: CAN_VIEW_NON_PUBLISHED

cmf_routing:
route_basepath: /cms/routes
chain:
Expand Down Expand Up @@ -145,6 +148,11 @@ sonata_block:
cache: cmf.block.cache.js_async

sonata_admin:
extensions:
cmf_core.admin_extension.publish_workflow:
implements:
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowInterface

templates:
# default global templates
ajax: SonataAdminBundle::ajax_layout.html.twig
Expand Down
4 changes: 2 additions & 2 deletions app/config/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ security:
Symfony\Component\Security\Core\User\User: plaintext

role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_ADMIN: ROLE_USER, CAN_VIEW_NON_PUBLISHED
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

providers:
Expand All @@ -30,4 +30,4 @@ security:

# access_control:
# - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
# - { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
# - { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
1 change: 1 addition & 0 deletions src/Sandbox/MainBundle/DataFixtures/PHPCR/LoadBlogData.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function load(ObjectManager $dm)
$p->setDate(new \DateTime());
$p->setBody($this->getWords());
$p->setBlog($blog);
$p->setPublishable(true);
$dm->persist($p);
}

Expand Down

0 comments on commit 6eeed05

Please sign in to comment.