From f90be52a07e3b881c033a8b6007b8159bdc1e01a Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Fri, 5 Jul 2013 13:46:18 -0400 Subject: [PATCH] warning msgs in admin --- src/admin/user.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/admin/user.js b/src/admin/user.js index f6c90725e9..8350af24ec 100644 --- a/src/admin/user.js +++ b/src/admin/user.js @@ -16,6 +16,14 @@ var RDB = require('./../redis.js'), }); }); } + else { + socket.emit('event:alert', { + title: 'Warning', + message: 'You need to be an administrator to make someone else an administrator!', + type: 'warning', + timeout: 2000 + }); + } }); };