This repository was archived by the owner on Feb 5, 2024. It is now read-only.
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ module.exports = function(crowi) {
422
422
pageSchema . statics . getEditLabels = function ( ) {
423
423
var editLabels = { } ;
424
424
editLabels [ EDIT_PUBLIC ] = '全員が編集可能' ;
425
- editLabels [ EDIT_OWNER ] = '自分のみ編集可能 ' ;
425
+ editLabels [ EDIT_OWNER ] = 'ページ作成者のみ編集可能 ' ;
426
426
427
427
return editLabels ;
428
428
} ;
Original file line number Diff line number Diff line change 44
44
< input type ="hidden " name ="pageForm[grant] " value ="{{ forceGrant }} ">
45
45
{% else %}
46
46
47
- {% if (page.isCreator(user) or user.admin) and not pageUser %}
47
+ {% if (page.isCreator(user) or user.admin or page.isEdit() ) and not pageUser %}
48
48
< select name ="pageForm[canEdit] " class ="form-control ">
49
49
{% for editId, editLabel in consts.editGrants %}
50
- < option value ="{{ editId }} " {% if pageForm.canEdit|default(page.canEdit) == editId %}selected{% endif %} > {{ editLabel }}</ option >
50
+ < option value ="{{ editId }} " {% if pageForm.canEdit|default(page.canEdit) == editId %}selected{% endif %} {% if not (user.admin or page.isCreator(user)) and not (pageForm.canEdit|default(page.canEdit) == editId) %}disabled{% endif %} > {{ editLabel }}</ option >
51
51
{% endfor %}
52
52
</ select >
53
53
{% endif %}
You can’t perform that action at this time.
0 commit comments