Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rng-3202298
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
rng-3202298
Commits
0963b6a4
Commit
0963b6a4
authored
8 years ago
by
dpi
Browse files
Options
Downloads
Patches
Plain Diff
Adding cache tags to registration access controller.
parent
7e14fe34
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rng.links.task.yml
+1
-2
1 addition, 2 deletions
rng.links.task.yml
src/AccessControl/RegistrationAccessControlHandler.php
+1
-1
1 addition, 1 deletion
src/AccessControl/RegistrationAccessControlHandler.php
with
2 additions
and
3 deletions
rng.links.task.yml
+
1
−
2
View file @
0963b6a4
...
@@ -7,13 +7,12 @@ entity.event_type.edit_form:
...
@@ -7,13 +7,12 @@ entity.event_type.edit_form:
route_name
:
entity.event_type.edit_form
route_name
:
entity.event_type.edit_form
base_route
:
entity.event_type.edit_form
base_route
:
entity.event_type.edit_form
title
:
'
Edit'
title
:
'
Edit'
weight
:
2
0
weight
:
-10
0
entity.event_type.access_defaults
:
entity.event_type.access_defaults
:
route_name
:
entity.event_type.access_defaults
route_name
:
entity.event_type.access_defaults
base_route
:
entity.event_type.edit_form
base_route
:
entity.event_type.edit_form
title
:
'
Access
Defaults'
title
:
'
Access
Defaults'
weight
:
20
# Registrations
# Registrations
entity.registration.canonical
:
entity.registration.canonical
:
...
...
This diff is collapsed.
Click to expand it.
src/AccessControl/RegistrationAccessControlHandler.php
+
1
−
1
View file @
0963b6a4
...
@@ -126,7 +126,7 @@ class RegistrationAccessControlHandler extends EntityAccessControlHandler {
...
@@ -126,7 +126,7 @@ class RegistrationAccessControlHandler extends EntityAccessControlHandler {
return
$return_as_object
?
$result
:
$result
->
isAllowed
();
return
$return_as_object
?
$result
:
$result
->
isAllowed
();
}
}
return
$return_as_object
?
AccessResult
::
allowed
()
:
TRUE
;
return
$return_as_object
?
AccessResult
::
allowed
()
->
addCacheableDependency
(
$event
)
:
TRUE
;
}
}
catch
(
InvalidEventException
$e
)
{
catch
(
InvalidEventException
$e
)
{
return
$fail
;
return
$fail
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment