(self, user)
return False
Returns ``True`` if `user` can modify this project.
Returns ``True`` if `user` can modify this project.
Returns True if user can modify this project .
def can_modify(self, user):
        """
        Returns ``True`` if `user` can modify this project.
        """
        if user and user.in_group('admin'):
            # Admins can always modify projects.
            return True
        elif self.is_owner(user):
            return True

        return False
def can_modify ( self , user ) : if user and user . in_group ( 'admin' ) : # Admins can always modify projects. return True elif self . is_owner ( user ) : return True return False