Commit 016f7aa6 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added email notification also for the user.

parent ba4ebc9b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -75,6 +75,10 @@ class GroupRwExecutor(TaskExecutor):
        # Send e-mail notification
        m = Mailer()
        m.addRecipient(self.adminEmail)
        userEmail = self.dbConn.getUserEmail(self.userId)
        if userEmail != self.adminEmail:
            m.addRecipient(userEmail)
        
        if self.requestType == "GRPR_ADD":
            msg = f"""
Added '{self.realGroupName}' to 'group_read' for {self.vospacePath} and any child nodes.