Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
N
node_authlink
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
node_authlink
Commits
e75de53d
Commit
e75de53d
authored
Nov 26, 2018
by
akalam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent revisions tab to appear for node authlinks
parent
a4379454
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Access/NodeRevisionAccessCheck.php
src/Access/NodeRevisionAccessCheck.php
+1
-1
No files found.
src/Access/NodeRevisionAccessCheck.php
View file @
e75de53d
...
...
@@ -18,7 +18,7 @@ class NodeRevisionAccessCheck extends NodeRevisionAccessCheckOriginal {
* {@inheritdoc}
*/
public
function
checkAccess
(
NodeInterface
$node
,
AccountInterface
$account
,
$op
=
'view'
)
{
if
(
node_authlink_node_is_enabled
(
$node
)
&&
node_authlink_check_authlink
(
$node
,
$op
,
$account
))
{
if
(
!
$node
->
isLatestRevision
()
&&
node_authlink_node_is_enabled
(
$node
)
&&
node_authlink_check_authlink
(
$node
,
$op
,
$account
))
{
return
AccessResult
::
allowed
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment