Meshcentral: BUG - When setting notifications in a Device Group they are are not saved

Created on 19 Mar 2021  路  9Comments  路  Source: Ylianst/MeshCentral

This is kind of weird. I have set the notifications settings under my account and save just fine, but when I go into a device group to set its notification settings, it simply does not save them when I click "OK". Is anyone else having this issue?

MeshCentral
v0.7.90

bug

All 9 comments

Are you full administrator on that device group? I am not seeing this.

Are you full administrator on that device group? I am not seeing this.

I have full administrator rights to the group but the group was created by a different account that is the first administrator user when the server was created. I simply used that account to give my account full rights.

Just confirmed that logging into the account that the Device Group was created with WILL save the notifications settings. This seems like an issue with assigned rights.

Steps to reproduce:

  1. With the administrator account created when the server was first setup, create a new Device Group
  2. Create a new user account
  3. Create a new user group and assign the user created in step 2 to that group
  4. In the Device Group created in step 1, add the user group created in step 3 to it with "Full Rights"
  5. Login to the user account created in step 2 and try to edit the "notifications".
  6. Notifications settings should save but do not...

Your right, I see the same problem. Working on it now.

I looked in the code and it turns out, I know about this problem and not sure how to fix it. I am going to have to design something to make this work. Currently, I can't do device group notifications when the permission for the device group is obtained thru a user group.

I see, so would the work around be to add my user account directly to the device group?

Confirmed! Workaround is to add the user directly to the Device Group.

I'm not sure about the inter workings of the code, but maybe enumerating the users listed in the user group at the user group permissions level. Then use that enumeration when adding user groups to device groups. In a sense it could be like each users rights are evaluated in the user group when added to a device group as though they were individually added to the device group.

The main problem is how to route notifications to the correct users efficiently. I am sure I will work something out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

coolwormgit picture coolwormgit  路  3Comments

petervanv picture petervanv  路  3Comments

MailYouLater picture MailYouLater  路  3Comments

unguzov picture unguzov  路  3Comments

penguinthingie picture penguinthingie  路  4Comments