fix bug in securityCheck

This commit is contained in:
Yaman Qalieh 2016-11-02 23:03:24 -04:00
parent d9d2ffb1ae
commit 3c3bcbffd6

View File

@ -166,7 +166,7 @@ function securityCheck(checklist, input) {
break; break;
// Any admin // Any admin
case 1: case 1:
if (Roles.userIsInRole(Meteor.userId(), ['superadmin', 'admin'])) error = errors.length - 2; if (!Roles.userIsInRole(Meteor.userId(), ['superadmin', 'admin'])) error = errors.length - 2;
break; break;
// Unverified classes // Unverified classes
case 2: case 2: