Commit 9b1f1713 authored by yann300's avatar yann300

don't warn if required module

parent bdb9fae5
...@@ -506,7 +506,8 @@ class FileManager extends Plugin { ...@@ -506,7 +506,8 @@ class FileManager extends Plugin {
async setFileContent (path, content) { async setFileContent (path, content) {
if (this.currentRequest) { if (this.currentRequest) {
const canCall = await this.askUserPermission('writeFile', '') const canCall = await this.askUserPermission('writeFile', '')
if (canCall) { const required = this.appManager.isRequired(this.currentRequest.from)
if (canCall && !required) {
// inform the user about modification after permission is granted and even if permission was saved before // inform the user about modification after permission is granted and even if permission was saved before
toaster(yo` toaster(yo`
<div> <div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment