summaryrefslogtreecommitdiffstats
path: root/app/core/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/core/files.js')
-rw-r--r--app/core/files.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/core/files.js b/app/core/files.js
index 7b5efa8..f1f85cb 100644
--- a/app/core/files.js
+++ b/app/core/files.js
@@ -55,6 +55,9 @@ FileManager.prototype.create = function(options, cb) {
if (room.archived) {
return cb('Room is archived.');
}
+ if (!room.isAuthorized(options.owner)) {
+ return cb('Not authorized.');
+ }
new File({
owner: options.owner,