Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fa8b0bd6a1 |
@@ -136,9 +136,34 @@ namespace Volian.Controls.Library
|
|||||||
//C2019-036 View Only mode work with Checked Out Procedures
|
//C2019-036 View Only mode work with Checked Out Procedures
|
||||||
//is in View Only Mode, so do not set up the Security
|
//is in View Only Mode, so do not set up the Security
|
||||||
if (OwnerID == 0)
|
if (OwnerID == 0)
|
||||||
return;
|
{
|
||||||
|
|
||||||
UserInfo ui = UserInfo.GetByUserID(OwnerInfo.Get(OwnerID).SessionUserID);
|
UserInfo uiViewOnly = UserInfo.GetByUserID(Base.Library.VlnSettings.UserID);
|
||||||
|
if (uiViewOnly.IsAdministrator())
|
||||||
|
{
|
||||||
|
MyUserRole = $"{Base.Library.VlnSettings.UserID} - Administrator";
|
||||||
|
}
|
||||||
|
else if (uiViewOnly.IsSetAdministrator(myItem.MyDocVersion))
|
||||||
|
{
|
||||||
|
MyUserRole = $"{Base.Library.VlnSettings.UserID} - Set Administrator";
|
||||||
|
}
|
||||||
|
else if (uiViewOnly.IsWriter(myItem.MyDocVersion))
|
||||||
|
{
|
||||||
|
MyUserRole = $"{Base.Library.VlnSettings.UserID} - Writer";
|
||||||
|
}
|
||||||
|
else if (uiViewOnly.IsROEditor(myItem.MyDocVersion))
|
||||||
|
{
|
||||||
|
MyUserRole = $"{Base.Library.VlnSettings.UserID} - RO Editor";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MyUserRole = $"{Base.Library.VlnSettings.UserID} - Reviewer";
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
UserInfo ui = UserInfo.GetByUserID(OwnerInfo.Get(OwnerID).SessionUserID);
|
||||||
|
|
||||||
if (ui == null)
|
if (ui == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user