Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
8bd37aa6
Commit
8bd37aa6
authored
Oct 17, 2016
by
Timo Benk
Browse files
endorseLinkPassword changed to enableLinkPasswordByDefault
parent
9601ef2c
Changes
5
Hide whitespace changes
Inline
Side-by-side
core/js/config.php
View file @
8bd37aa6
...
...
@@ -64,8 +64,8 @@ $outgoingServer2serverShareEnabled = $config->getAppValue('files_sharing', 'outg
$countOfDataLocation
=
0
;
$value
=
$config
->
getAppValue
(
'core'
,
'shareapi_en
dors
e_link
s
_password'
,
'no'
);
$en
dorsePasswordForPublicLink
=
(
$value
===
'yes'
)
?
true
:
false
;
$value
=
$config
->
getAppValue
(
'core'
,
'shareapi_en
abl
e_link_password
_by_default
'
,
'no'
);
$en
ableLinkPasswordByDefault
=
(
$value
===
'yes'
)
?
true
:
false
;
$dataLocation
=
str_replace
(
OC
::
$SERVERROOT
.
'/'
,
''
,
$config
->
getSystemValue
(
'datadirectory'
,
''
),
$countOfDataLocation
);
if
(
$countOfDataLocation
!==
1
||
!
OC_User
::
isAdminUser
(
OC_User
::
getUser
())){
...
...
@@ -162,7 +162,7 @@ $array = [
'defaultExpireDate'
=>
$defaultExpireDate
,
'defaultExpireDateEnforced'
=>
$enforceDefaultExpireDate
,
'enforcePasswordForPublicLink'
=>
\
OCP\Util
::
isPublicLinkPasswordRequired
(),
'en
dorsePasswordForPublicLink'
=>
$endorsePasswordForPublicLink
,
'en
ableLinkPasswordByDefault'
=>
$enableLinkPasswordByDefault
,
'sharingDisabledForUser'
=>
\
OCP\Util
::
isSharingDisabledForUser
(),
'resharingAllowed'
=>
\
OCP\Share
::
isResharingAllowed
(),
'remoteShareAllowed'
=>
$outgoingServer2serverShareEnabled
,
...
...
core/js/shareconfigmodel.js
View file @
8bd37aa6
...
...
@@ -22,7 +22,7 @@
defaults
:
{
publicUploadEnabled
:
false
,
enforcePasswordForPublicLink
:
oc_appconfig
.
core
.
enforcePasswordForPublicLink
,
en
dorsePasswordForPublicLink
:
oc_appconfig
.
core
.
endorsePasswordForPublicLink
,
en
ableLinkPasswordByDefault
:
oc_appconfig
.
core
.
enableLinkPasswordByDefault
,
isDefaultExpireDateEnforced
:
oc_appconfig
.
core
.
defaultExpireDateEnforced
===
true
,
isDefaultExpireDateEnabled
:
oc_appconfig
.
core
.
defaultExpireDateEnabled
===
true
,
isRemoteShareAllowed
:
oc_appconfig
.
core
.
remoteShareAllowed
,
...
...
core/js/sharedialoglinkshareview.js
View file @
8bd37aa6
...
...
@@ -157,7 +157,7 @@
}
if
(
$checkBox
.
is
(
'
:checked
'
))
{
if
(
this
.
configModel
.
get
(
'
enforcePasswordForPublicLink
'
)
===
false
&&
this
.
configModel
.
get
(
'
en
dorsePasswordForPublicLink
'
)
===
false
)
{
if
(
this
.
configModel
.
get
(
'
enforcePasswordForPublicLink
'
)
===
false
&&
this
.
configModel
.
get
(
'
en
ableLinkPasswordByDefault
'
)
===
false
)
{
$loading
.
removeClass
(
'
hidden
'
);
// this will create it
this
.
model
.
saveLinkShare
();
...
...
settings/admin.php
View file @
8bd37aa6
...
...
@@ -134,7 +134,7 @@ $template->assign('suggestedOverwriteCliUrl', $suggestedOverwriteCliUrl);
$template
->
assign
(
'allowLinks'
,
$appConfig
->
getValue
(
'core'
,
'shareapi_allow_links'
,
'yes'
));
$template
->
assign
(
'enforceLinkPassword'
,
\
OCP\Util
::
isPublicLinkPasswordRequired
());
$template
->
assign
(
'en
dors
eLinkPassword'
,
$appConfig
->
getValue
(
'core'
,
'shareapi_en
dors
e_link
s
_password'
,
'no'
));
$template
->
assign
(
'en
abl
eLinkPassword
ByDefault
'
,
$appConfig
->
getValue
(
'core'
,
'shareapi_en
abl
e_link_password
_by_default
'
,
'no'
));
$template
->
assign
(
'allowPublicUpload'
,
$appConfig
->
getValue
(
'core'
,
'shareapi_allow_public_upload'
,
'yes'
));
$template
->
assign
(
'allowResharing'
,
$appConfig
->
getValue
(
'core'
,
'shareapi_allow_resharing'
,
'yes'
));
$template
->
assign
(
'allowPublicMailNotification'
,
$appConfig
->
getValue
(
'core'
,
'shareapi_allow_public_notification'
,
'no'
));
...
...
settings/templates/admin.php
View file @
8bd37aa6
...
...
@@ -221,9 +221,9 @@ if ($_['cronErrors']) {
value=
"1"
<?php
if
(
$_
[
'allowPublicUpload'
]
==
'yes'
)
print_unescaped
(
'checked="checked"'
);
?>
/>
<label
for=
"allowPublicUpload"
>
<?php
p
(
$l
->
t
(
'Allow public uploads'
));
?>
</label><br/>
<input
type=
"checkbox"
name=
"shareapi_en
dors
e_link
s
_password"
id=
"en
dors
eLinkPassword"
class=
"checkbox"
value=
"1"
<?php
if
(
$_
[
'en
dors
eLinkPassword'
]
===
'yes'
)
print_unescaped
(
'checked="checked"'
);
?>
/>
<label
for=
"en
dors
eLinkPassword"
>
<?php
p
(
$l
->
t
(
'En
dors
e password
protection
'
));
?>
</label><br/>
<input
type=
"checkbox"
name=
"shareapi_en
abl
e_link_password
_by_default
"
id=
"en
abl
eLinkPassword
ByDefault
"
class=
"checkbox"
value=
"1"
<?php
if
(
$_
[
'en
abl
eLinkPassword
ByDefault
'
]
===
'yes'
)
print_unescaped
(
'checked="checked"'
);
?>
/>
<label
for=
"en
abl
eLinkPassword
ByDefault
"
>
<?php
p
(
$l
->
t
(
'En
abl
e password
by default for link shares
'
));
?>
</label><br/>
<input
type=
"checkbox"
name=
"shareapi_enforce_links_password"
id=
"enforceLinkPassword"
class=
"checkbox"
value=
"1"
<?php
if
(
$_
[
'enforceLinkPassword'
])
print_unescaped
(
'checked="checked"'
);
?>
/>
...
...
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