Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
9fd4407e
Commit
9fd4407e
authored
Aug 11, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Aug 11, 2014
Browse files
Fixes several problems with readonly and edit mode in multiPlugin
parent
d21a544f
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/simpleplugin/class_multiPlugin.inc
View file @
9fd4407e
...
...
@@ -92,7 +92,7 @@ class multiPlugin extends simplePlugin
$ReadOnly
=
(
!
isset
(
$this
->
parent
)
||
!
$this
->
parent
)
&&
!
session
::
is_set
(
'edit'
);
foreach
(
$this
->
plugin
as
&
$plug
)
{
$plug
->
R
ead
O
nly
=
$ReadOnly
;
$plug
->
r
ead
_o
nly
=
$ReadOnly
;
if
(
!
$is_first
)
{
$display
.
=
'<p class="seperator plugbottom"> </p>'
;
}
else
{
...
...
@@ -148,6 +148,15 @@ class multiPlugin extends simplePlugin
unset
(
$plug
);
}
public
function
setNeedEditMode
(
$bool
)
{
parent
::
setNeedEditMode
(
$bool
);
foreach
(
$this
->
plugin
as
&
$plug
)
{
$plug
->
setNeedEditMode
(
$bool
);
}
unset
(
$plug
);
}
/* Save to LDAP */
function
save
()
{
...
...
Write
Preview
Supports
Markdown
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