Check that the object is the correct type before casting it as an ItemInfo.
This commit is contained in:
parent
ac3204ada6
commit
a7081cad94
@ -747,7 +747,7 @@ namespace Volian.Controls.Library
|
||||
ok = true;
|
||||
else if (tn.VEObject is DocVersionInfo && (ui.IsAdministrator() || ui.IsSetAdministrator(tn.VEObject as DocVersionInfo)))
|
||||
ok = true;
|
||||
else if (ui.IsAdministrator() || ui.IsSetAdministrator((tn.VEObject as ItemInfo).MyProcedure.MyDocVersion) || ui.IsWriter((tn.VEObject as ItemInfo).MyProcedure.MyDocVersion))
|
||||
else if (tn.VEObject is ItemInfo && (ui.IsAdministrator() || ui.IsSetAdministrator((tn.VEObject as ItemInfo).MyProcedure.MyDocVersion) || ui.IsWriter((tn.VEObject as ItemInfo).MyProcedure.MyDocVersion)))
|
||||
ok = true;
|
||||
if(ok)
|
||||
Menu_Paste(tn, cm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user