Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set MediaType only accessible if global change permission #1295

Open
celle1234 opened this issue Oct 26, 2021 · 1 comment
Open

set MediaType only accessible if global change permission #1295

celle1234 opened this issue Oct 26, 2021 · 1 comment

Comments

@celle1234
Copy link

Hello,

I own a device, for example a switch or a server, and try to make connections. There I can set the color and the media type. If I have global permissions this is working. If I only have the permission to edit my owned device and I own the device, I can only set the color. Editung the media type is not possible. On your Demo site https://demo.opendcim.org/ the problem also exist.

regards

Celle1234

@celle1234
Copy link
Author

Hello,

I think the problem is in scripts/common.js getmediatypes: function()

if(portrights.admin){
  row.porttype.html(mlist);
}else{
  row.porttype.append(mlist);
  mlist.hide();
}

For color there is no such restriction some lines above. This code is in common.js since the beginning.

Is there a reason for that? I can only edit a connection if I have the permission on the device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant