Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2-widgets2-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hrzg
yii2-widgets2-module
Commits
226a84e5
Commit
226a84e5
authored
Oct 05, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed access check for context menu items
parent
a012b7e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cell.php
src/widgets/Cell.php
+1
-1
No files found.
src/widgets/Cell.php
View file @
226a84e5
...
...
@@ -46,8 +46,8 @@ class Cell extends Widget
*/
public
function
init
()
{
\Yii
::
$app
->
trigger
(
'registerMenuItems'
,
new
Event
([
'sender'
=>
$this
]));
if
(
\Yii
::
$app
->
user
->
can
(
'widgets_crud_widget'
))
{
\Yii
::
$app
->
trigger
(
'registerMenuItems'
,
new
Event
([
'sender'
=>
$this
]));
WidgetAsset
::
register
(
\Yii
::
$app
->
view
);
}
}
...
...
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