Last active
November 22, 2015 17:55
-
-
Save agileadam/b169906d3686a956ddba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before | |
function(model){model.prototype.canAddTasks=function(){if(!this.isEditable())return false;if(angie.logged_user.isOwner()||angie.logged_user.isProjectLeader(this))return true;if(!angie.logged_user.isProjectMember(this))return false;return!angie.logged_user.isClient()}; | |
// After; replaced "return!angie.logged_user.isClient()" with "return angie.logged_user.isClient()" | |
function(model){model.prototype.canAddTasks=function(){if(!this.isEditable())return false;if(angie.logged_user.isOwner()||angie.logged_user.isProjectLeader(this))return true;if(!angie.logged_user.isProjectMember(this))return false;return angie.logged_user.isClient()}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment