Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
ef64fe71
Verified
Commit
ef64fe71
authored
1 month ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
Feat(Actions) - pass actions class to php 82
Adapt class actions from mgnt to php8.2
parent
5b12f3fb
core-php8
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/management/actions/class_Action.inc
+6
-6
include/management/actions/class_Action.inc
with
6 additions
and
6 deletions
+6
-6
include/management/actions/class_Action.inc
+
6
−
6
View file @
ef64fe71
...
@@ -77,17 +77,17 @@ class Action
...
@@ -77,17 +77,17 @@ class Action
$category
=
NULL
;
$category
=
NULL
;
$class
=
NULL
;
$class
=
NULL
;
$attribute
=
'0'
;
$attribute
=
'0'
;
if
(
str
pos
(
$acl
,
'/'
)
!==
FALSE
)
{
if
(
str
_contains
((
string
)
$acl
,
'/'
)
)
{
list
(
$category
,
$class
,
$acl
)
=
explode
(
'/'
,
$acl
,
3
);
list
(
$category
,
$class
,
$acl
)
=
explode
(
'/'
,
(
string
)
$acl
,
3
);
}
}
if
(
str
pos
(
$acl
,
':'
)
!==
FALSE
)
{
if
(
str
_contains
((
string
)
$acl
,
':'
)
)
{
list
(
$attribute
,
$acl
)
=
explode
(
':'
,
$acl
,
2
);
list
(
$attribute
,
$acl
)
=
explode
(
':'
,
(
string
)
$acl
,
2
);
}
}
$this
->
acl
[]
=
[
$this
->
acl
[]
=
[
'category'
=>
$category
,
'category'
=>
$category
,
'class'
=>
$class
,
'class'
=>
$class
,
'attribute'
=>
$attribute
,
'attribute'
=>
$attribute
,
'acl'
=>
str_split
(
$acl
),
'acl'
=>
str_split
(
(
string
)
$acl
),
];
];
}
}
...
@@ -275,7 +275,7 @@ class Action
...
@@ -275,7 +275,7 @@ class Action
// Check rights
// Check rights
foreach
(
$acl
[
'acl'
]
as
$part
)
{
foreach
(
$acl
[
'acl'
]
as
$part
)
{
if
(
str
pos
(
$checkAcl
,
$part
)
===
FALSE
)
{
if
(
!
str
_contains
((
string
)
$checkAcl
,
(
string
)
$part
)
)
{
return
FALSE
;
return
FALSE
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets