Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
77bc838d
Commit
77bc838d
authored
Oct 25, 2013
by
Son Nguyen
Committed by
Gerrit Code Review
Oct 25, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Problems with image gallery and file/folder selection Bug 1236128" into 1.6_STABLE
parents
092cb585
7bda07eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
htdocs/artefact/file/form/elements/filebrowser.php
htdocs/artefact/file/form/elements/filebrowser.php
+2
-1
No files found.
htdocs/artefact/file/form/elements/filebrowser.php
View file @
77bc838d
...
@@ -102,7 +102,8 @@ function pieform_element_filebrowser(Pieform $form, $element) {
...
@@ -102,7 +102,8 @@ function pieform_element_filebrowser(Pieform $form, $element) {
if
(
!
empty
(
$value
))
{
if
(
!
empty
(
$value
))
{
foreach
(
$value
as
$k
=>
$v
)
{
foreach
(
$value
as
$k
=>
$v
)
{
$file
=
artefact_instance_from_id
(
$v
);
$file
=
artefact_instance_from_id
(
$v
);
if
(
!
(
$file
instanceof
ArtefactTypeFile
)
||
!
$USER
->
can_publish_artefact
(
$file
))
{
if
((
!
(
$file
instanceof
ArtefactTypeFile
)
&&
!
(
$file
instanceof
ArtefactTypeFolder
))
||
!
$USER
->
can_publish_artefact
(
$file
))
{
unset
(
$value
[
$k
]);
unset
(
$value
[
$k
]);
}
}
}
}
...
...
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