Repro Steps:
Be a moderator(Not admin) 
Go to invite tab 
Go to links 
Click “Create Invite” 
Select Multiple Users 
Choose a group from the list(But make sure you are not an owner/member of it) 
Click Copy Invite Link 
It doesn’t work because moderators do not have permissions to perform the action, but the button exists 
 
Fix: Please remove the invite to group menu from Moderator  Menu.
             
            
              
            
           
          
            
              
                osioke  
              
                  
                    July 13, 2020, 12:23pm
                   
                  4 
               
             
            
              THanks for the report @Chaboi_3000 , we are currently looking into this.
             
            
              2 Likes 
            
            
           
          
            
              
                techAPJ  
              
                  
                    July 13, 2020,  4:08pm
                   
                  5 
               
             
            
              I made it so that if moderator is not owner of any group then the group input will not show. Also, if the moderator selects a group where they are not an owner then the error message will indicate that.
https://github.com/discourse/discourse/commit/7532f24668242ee7e7925745d04631ffdd52cc20 
             
            
              5 Likes