Skip to content

Commit 46ae62f

Browse files
youenDjity.net
authored andcommitted
check permision before call editable widget in simple page
1 parent 8c7b2cb commit 46ae62f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

djity/templates/djity/simplepage/page.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
{% endblock %}
99

1010
{% block module_onload %}
11+
if(dj.context.perm.edit){
1112
$('#simple_page_content').editable(
1213
{
1314
save_function:'djity.simplepage.save_simple_page',
1415
get_function:'djity.simplepage.get_simple_page',
1516
lang:dj.context.simple_page_lang
1617
});
17-
18+
}
1819
{% endblock %}
1920
{% block body %}
2021
<div id="simple_page_content" >

0 commit comments

Comments
 (0)