@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** JobReferencesUpdateListener.php */ |
11 | 11 | namespace Applications\Repository\Event; |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | |
57 | 57 | foreach ($document->getAttachments() as $attachment) { |
58 | 58 | $attachment->getPermissions() |
59 | - ->clear() |
|
60 | - ->inherit($permissions); |
|
59 | + ->clear() |
|
60 | + ->inherit($permissions); |
|
61 | 61 | if ($isUpdate) { |
62 | 62 | $uow->computeChangeSet( |
63 | 63 | $dm->getClassMetadata(get_class($attachment)), |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | |
69 | 69 | if ($image = $document->contact->image) { |
70 | 70 | $image->getPermissions() |
71 | - ->clear() |
|
72 | - ->inherit($permissions); |
|
71 | + ->clear() |
|
72 | + ->inherit($permissions); |
|
73 | 73 | if ($isUpdate) { |
74 | 74 | $uow->computeChangeSet( |
75 | 75 | $dm->getClassMetadata(get_class($image)), |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * Configuration file of the Auth module |
|
5 | - * |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * Configuration file of the Auth module |
|
5 | + * |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | return array( |
11 | 11 | |
@@ -234,12 +234,12 @@ discard block |
||
234 | 234 | 'options' => array( |
235 | 235 | 'route' => '/login/:provider', |
236 | 236 | 'constraints' => array( |
237 | - // 'provider' => '.+', |
|
237 | + // 'provider' => '.+', |
|
238 | 238 | ), |
239 | 239 | 'defaults' => array( |
240 | 240 | 'controller' => 'Auth\Controller\Index', |
241 | 241 | 'action' => 'login' |
242 | - ), |
|
242 | + ), |
|
243 | 243 | ), |
244 | 244 | ), |
245 | 245 | 'auth-hauth' => array( |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | 'route/lang/my-password' |
399 | 399 | ), |
400 | 400 | 'deny' => array( |
401 | - // 'route/lang/auth', |
|
401 | + // 'route/lang/auth', |
|
402 | 402 | 'route/auth-provider', |
403 | 403 | 'route/auth-extern', |
404 | 404 | 'route/lang/forgot-password', |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | 'factories' => array( |
498 | 498 | 'auth' => '\Auth\Factory\View\Helper\AuthFactory', |
499 | 499 | 'acl' => '\Acl\Factory\View\Helper\AclFactory', |
500 | - ), |
|
500 | + ), |
|
501 | 501 | ), |
502 | 502 | |
503 | 503 | 'form_elements' => array( |
@@ -97,9 +97,9 @@ |
||
97 | 97 | |
98 | 98 | $event = new AssertionEvent(null, $this); |
99 | 99 | $event->setAcl($acl) |
100 | - ->setRole($role) |
|
101 | - ->setResource($resource) |
|
102 | - ->setPrivilege($privilege); |
|
100 | + ->setRole($role) |
|
101 | + ->setResource($resource) |
|
102 | + ->setPrivilege($privilege); |
|
103 | 103 | |
104 | 104 | $events = $this->getEventManager(); |
105 | 105 |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** Acl.php */ |
11 | 11 | namespace Acl\Controller\Plugin; |
@@ -138,14 +138,14 @@ discard block |
||
138 | 138 | if (!$this->test($resource, $privilege)) { |
139 | 139 | $msg = null === $privilege |
140 | 140 | ? sprintf( |
141 | - 'You are not allowed to access resource "%s"', |
|
142 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | - ) |
|
141 | + 'You are not allowed to access resource "%s"', |
|
142 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | + ) |
|
144 | 144 | : sprintf( |
145 | - 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | - $privilege, |
|
147 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | - ); |
|
145 | + 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | + $privilege, |
|
147 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | + ); |
|
149 | 149 | |
150 | 150 | if ($resource instanceof FileInterface && 0 == strpos($resource->type, 'image/')) { |
151 | 151 | throw new UnauthorizedImageAccessException(str_replace('resource', 'image', $msg)); |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** CheckRouteListener.php */ |
11 | 11 | namespace Acl\Listener; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @param EventManagerInterface $events |
60 | 60 | * @param integer $priority |
61 | - */ |
|
61 | + */ |
|
62 | 62 | public function attach(EventManagerInterface $events) |
63 | 63 | { |
64 | 64 | $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, array($this, 'onRoute'), -10); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $acl = $this->getAcl(); |
113 | 113 | |
114 | 114 | if ($acl->hasResource($resourceId) && !$acl->isAllowed($role, $resourceId, $privilege)) { |
115 | - /* |
|
115 | + /* |
|
116 | 116 | * Exceptions are only catched within the dispatch listener, so |
117 | 117 | * we have to set the exception manually in the event |
118 | 118 | * and trigger the DISPATCH_ERROR event. |
@@ -352,7 +352,7 @@ |
||
352 | 352 | { |
353 | 353 | //$adapter = $this->getServiceLocator()->get('ExternalApplicationAdapter'); |
354 | 354 | if (false) { |
355 | - $this->request->setMethod('get'); |
|
355 | + $this->request->setMethod('get'); |
|
356 | 356 | $params = new Parameters( |
357 | 357 | array( |
358 | 358 | 'format' => 'json', |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** Auth model */ |
11 | 11 | namespace Auth\Entity; |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * Gets the Day of the date of birth |
31 | 31 | * |
32 | 32 | * @return string |
33 | - */ |
|
33 | + */ |
|
34 | 34 | public function getBirthDay(); |
35 | 35 | |
36 | 36 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * Gets the month of the date of birth |
45 | 45 | * |
46 | 46 | * @return string |
47 | - */ |
|
47 | + */ |
|
48 | 48 | public function getBirthMonth(); |
49 | 49 | |
50 | 50 | /** |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * Gets the Year of the date of birth. |
59 | 59 | * |
60 | 60 | * @return string |
61 | - */ |
|
61 | + */ |
|
62 | 62 | public function getBirthYear(); |
63 | 63 | |
64 | 64 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * Gets the gender |
112 | 112 | * |
113 | 113 | * @return string |
114 | - */ |
|
114 | + */ |
|
115 | 115 | public function getGender(); |
116 | 116 | |
117 | 117 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * Gets the users street |
153 | 153 | * |
154 | 154 | * @return string |
155 | - */ |
|
155 | + */ |
|
156 | 156 | public function getStreet(); |
157 | 157 | |
158 | 158 | /** |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
6 | - * @license MIT |
|
7 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
6 | + * @license MIT |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Auth\Entity; |
10 | 10 |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Auth\Factory\Form; |
11 | 11 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | || array_key_exists('user', $config['acl']['roles']) |
40 | 40 | ? array(User::ROLE_USER) |
41 | 41 | : array('none') |
42 | - ); |
|
42 | + ); |
|
43 | 43 | |
44 | 44 | $valueOptions = array(); |
45 | 45 | foreach ($publicRoles as $role) { |