PermissionsEnum.Posts.isAuthor = function (userId, post) {
    var isAuthor = false;
    _.forEach(post.authors, function (author) {
        if (author.userId === userId) {
            isAuthor = true;