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
5beec17f
Unverified
Commit
5beec17f
authored
4 years ago
by
Côme Chilliet
Browse files
Options
Download
Patches
Plain Diff
fix(aclrole) Fix ACL edition screen
issue #6119
parent
a9a264cc
dev
6342-update-the-locales-for-1-5
6344-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen
6365-core-locking-mechanism-is-not-changing-the-mail-ressource-it-does-lock-the-mail-account
6365-core-when-lock-mechanism-is-trigger-the-user-should-not-be-editable-if-not-unlock
6378-orcid-test-method-is-wrong-and-break-orcid-saving
core-php8
master
fusiondirectory-1.5
fusiondirectory-1.4
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/admin/aclrole/acleditiondialog.tpl
+12
-16
plugins/admin/aclrole/acleditiondialog.tpl
with
12 additions
and
16 deletions
+12
-16
plugins/admin/aclrole/acleditiondialog.tpl
+
12
−
16
View file @
5beec17f
...
@@ -7,9 +7,10 @@
...
@@ -7,9 +7,10 @@
<input
type=
"submit"
formnovalidate=
"formnovalidate"
name=
"add_cancel"
value=
"
{
msgPool
type
=
cancelButton
}
"
/>
<input
type=
"submit"
formnovalidate=
"formnovalidate"
name=
"add_cancel"
value=
"
{
msgPool
type
=
cancelButton
}
"
/>
</p>
</p>
{
elseif
$dialogState
eq
'edit'
}
{
elseif
$dialogState
eq
'edit'
}
{
function
makeCheckbox
id
=
''
label
=
''
checked
=
false
}
{
function
makeCheckbox
key
=
''
infos
=
''
attr
=
''
acl
=
''
rights
=
''
}
<input
id=
"acl_
{
$id
}
"
type=
"checkbox"
name=
"acl_
{
$id
}
"
{
if
$checked
}
checked=
"checked"
{/
if
}
/>
{
$checked
=
(
strpos
(
$rights
,
$acl
)
!==
FALSE
)
}
<label
for=
"acl_
{
$id
}
"
>
{
$label
}
</label>
<input
id=
"acl_
{
$infos.tname
}
_
{
$attr
}
_
{
$acl
}
"
type=
"checkbox"
name=
"acl_
{
$key
}
_
{
$attr
}
_
{
$acl
}
"
{
if
$checked
}
checked=
"checked"
{/
if
}
/>
<label
for=
"acl_
{
$infos.tname
}
_
{
$attr
}
_
{
$acl
}
"
>
{
$label
}
</label>
{/
function
}
{/
function
}
<input
type=
"hidden"
name=
"acl_dummy_0_0_0"
value=
"1"
/>
<input
type=
"hidden"
name=
"acl_dummy_0_0_0"
value=
"1"
/>
...
@@ -55,26 +56,26 @@
...
@@ -55,26 +56,26 @@
<tr>
<tr>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
{
if
$infos.rights.create
}
{
if
$infos.rights.create
}
{
makeCheckbox
id
=
{
$infos.tname
|
cat
:
'_0_c'
}
label
=
_
(
"Create objects"
)
checked
=
preg_match
(
'/c/'
,
$infos.globalAcl
)
}
{
makeCheckbox
key
=
$key
infos
=
$infos
attr
=
0
acl
=
c
label
=
_
(
"Create objects"
)
rights
=
$infos.globalAcl
}
{/
if
}
{/
if
}
{
if
$infos.rights.move
}
{
if
$infos.rights.move
}
{
makeCheckbox
id
=
{
$infos.tname
|
cat
:
'_0_m'
}
label
=
_
(
"Move objects"
)
checked
=
preg_match
(
'/m/'
,
$infos.globalAcl
)
}
{
makeCheckbox
key
=
$key
infos
=
$infos
attr
=
0
acl
=
m
label
=
_
(
"Move objects"
)
rights
=
$infos.globalAcl
}
{/
if
}
{/
if
}
{
if
$infos.rights.remove
}
{
if
$infos.rights.remove
}
{
makeCheckbox
id
=
{
$infos.tname
|
cat
:
'_0_d'
}
label
=
_
(
"Remove objects"
)
checked
=
preg_match
(
'/d/'
,
$infos.globalAcl
)
}
{
makeCheckbox
key
=
$key
infos
=
$infos
attr
=
0
acl
=
d
label
=
_
(
"Remove objects"
)
rights
=
$infos.globalAcl
}
{/
if
}
{/
if
}
{
if
$infos.rights.self
}
{
if
$infos.rights.self
}
{
makeCheckbox
id
=
{
$infos.tname
|
cat
:
'_0_s'
}
label
=
_
(
"Grant permission to owner"
)
checked
=
preg_match
(
'/s/'
,
$infos.globalAcl
)
}
{
makeCheckbox
key
=
$key
infos
=
$infos
attr
=
0
acl
=
s
label
=
_
(
"Grant permission to owner"
)
rights
=
$infos.globalAcl
}
{/
if
}
{/
if
}
</td>
</td>
<td>
<td>
{
if
(
$infos.rights.read
||
$infos.rights.write
)
}
{
if
(
$infos.rights.read
||
$infos.rights.write
)
}
{
t
}
Complete object
{/
t
}
:
{
t
}
Complete object
{/
t
}
:
{
if
$infos.rights.read
}
{
if
$infos.rights.read
}
{
makeCheckbox
id
=
{
$infos.tname
|
cat
:
'_0_r'
}
label
=
_
(
"read"
)
checked
=
preg_match
(
'/r/'
,
$infos.globalAcl
)
}
{
makeCheckbox
key
=
$key
infos
=
$infos
attr
=
0
acl
=
r
label
=
_
(
"read"
)
rights
=
$infos.globalAcl
}
{/
if
}
{/
if
}
{
if
$infos.rights.write
}
{
if
$infos.rights.write
}
{
makeCheckbox
id
=
{
$infos.tname
|
cat
:
'_0_w'
}
label
=
_
(
"write"
)
checked
=
preg_match
(
'/w/'
,
$infos.globalAcl
)
}
{
makeCheckbox
key
=
$key
infos
=
$infos
attr
=
0
acl
=
w
label
=
_
(
"write"
)
rights
=
$infos.globalAcl
}
{/
if
}
{/
if
}
{/
if
}
{/
if
}
</td>
</td>
...
@@ -104,13 +105,8 @@
...
@@ -104,13 +105,8 @@
{/
if
}
{/
if
}
<td>
<td>
<b>
{
$dsc
}
</b>
(
{
$attr
}
)
<br/>
<b>
{
$dsc
}
</b>
(
{
$attr
}
)
<br/>
{
$rchecked
=
preg_match
(
'/r/'
,
$state
)
}
{
makeCheckbox
key
=
$key
infos
=
$infos
attr
=
$attr
acl
=
r
label
=
_
(
"read"
)
rights
=
$state
}
{
$wchecked
=
preg_match
(
'/w/'
,
$state
)
}
{
makeCheckbox
key
=
$key
infos
=
$infos
attr
=
$attr
acl
=
w
label
=
_
(
"write"
)
rights
=
$state
}
<input
id=
"acl_
{
$infos.tname
}
_
{
$attr
}
_r"
type=
"checkbox"
name=
"acl_
{
$key
}
_
{
$attr
}
_r"
{
if
$rchecked
}
checked=
"checked"
{/
if
}
/>
<label
for=
"acl_
{
$infos.tname
}
_
{
$attr
}
_r"
>
{
t
}
read
{/
t
}
</label>
<input
id=
"acl_
{
$infos.tname
}
_
{
$attr
}
_w"
type=
"checkbox"
name=
"acl_
{
$key
}
_
{
$attr
}
_w"
{
if
$wchecked
}
checked=
"checked"
{/
if
}
/>
<label
for=
"acl_
{
$infos.tname
}
_
{
$attr
}
_w"
>
{
t
}
write
{/
t
}
</label>
</td>
</td>
{* Close table row *}
{* Close table row *}
...
...
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