Merge branch 'devel'

This commit is contained in:
Lauri Ojansivu 2017-04-13 10:25:33 +03:00
commit 2b176aeac1
5 changed files with 15 additions and 10 deletions

View file

@ -8,8 +8,12 @@ This release adds the following new features:
* Set first user as admin, it there is no existing
users and Wekan is not running at Sandstorm.
* New Docker Compose [Wekan-MongoDB](https://github.com/wekan/wekan-mongodb)
and [Wekan-PostgreSQL](https://github.com/wekan/wekan-postgresql)
that use Meteor v1.4 and Node v4 based Wekan's meteor-1.4 branch.
Thanks to GitHub user Zokormazo for contributions.
Thanks to GitHub users brylie, stephenmoloney and Zokormazo for
contributions.
# v0.18 2017-04-02 Wekan release

View file

@ -137,8 +137,8 @@
"color-yellow": "gelb",
"comment": "Kommentar",
"comment-placeholder": "Kommentar schreiben",
"comment-only": "Limited",
"comment-only-desc": "Can comment on cards only.",
"comment-only": "Eingeschränkt",
"comment-only-desc": "Kann Karten nur Kommentieren",
"computer": "Computer",
"create": "Erstellen",
"createBoardPopup-title": "Board erstellen",
@ -337,12 +337,12 @@
"email-addresses": "E-Mail Adressen",
"smtp-host-description": "Die Adresse Ihres SMTP-Servers für ausgehende E-Mails.",
"smtp-port-description": "Der Port Ihres SMTP-Servers für ausgehende E-Mails.",
"smtp-tls-description": "Enable TLS support for SMTP server",
"smtp-tls-description": "Aktiviere TLS Unterstützung für SMTP Server",
"smtp-host": "SMTP-Server",
"smtp-port": "SMTP-Port",
"smtp-username": "Benutzername",
"smtp-password": "Passwort",
"smtp-tls": "TLS support",
"smtp-tls": "TLS Unterstützung",
"send-from": "Absender",
"invitation-code": "Einladungscode",
"email-invite-register-subject": "__inviter__ hat Ihnen eine Einladung geschickt",

View file

@ -71,7 +71,7 @@
"attachment-delete-pop": "Deleting an attachment is permanent. There is no undo.",
"attachmentDeletePopup-title": "Delete Attachment?",
"attachments": "Attachments",
"auto-watch": "Automatically watch boards when create it",
"auto-watch": "Automatically watch boards when they are created",
"avatar-too-big": "The avatar is too large (70Kb max)",
"back": "Back",
"board-change-color": "Change color",

View file

@ -263,9 +263,9 @@
"password": "کلمه عبور",
"paste-or-dragdrop": "جهت چسباندن، یا کشیدن-رهاسازی فایل تصویر به آن (تصویر)",
"participating": "Participating",
"preview": "نمایش",
"previewAttachedImagePopup-title": "نمایش",
"previewClipboardImagePopup-title": "نمایش",
"preview": "پیش‌نمایش",
"previewAttachedImagePopup-title": "پیش‌نمایش",
"previewClipboardImagePopup-title": "پیش‌نمایش",
"private": "خصوصی",
"private-desc": "این تخته خصوصی است. فقط تنها افراد اضافه شده به آن می توانند مشاهده و ویرایش کنند.",
"profile": "پروفایل",

View file

@ -205,7 +205,8 @@ if (isSandstorm && Meteor.isServer) {
function updateUserPermissions(userId, permissions) {
const isActive = permissions.indexOf('participate') > -1;
const isAdmin = permissions.indexOf('configure') > -1;
const permissionDoc = { userId, isActive, isAdmin };
const isCommentOnly = false;
const permissionDoc = { userId, isActive, isAdmin, isCommentOnly };
const boardMembers = Boards.findOne(sandstormBoard._id).members;
const memberIndex = _.pluck(boardMembers, 'userId').indexOf(userId);