We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7854899 commit 76967f1Copy full SHA for 76967f1
+stdlib/is_admin.m
@@ -6,15 +6,19 @@
6
if stdlib.has_python()
7
if isunix()
8
y = py.os.getuid() == 0;
9
- else
+ return
10
+ elseif ~isMATLABReleaseOlderThan('R2024a')
11
shell32 = py.ctypes.WinDLL('shell32');
12
13
% this is a key step vs. simply py.ctypes.windll.shell32.IsUserAnAdmin()
14
f = py.getattr(shell32, 'IsUserAnAdmin');
15
16
y = logical(f());
17
18
end
-elseif stdlib.isoctave()
19
+end
20
+
21
+if stdlib.isoctave()
22
y = getuid() == 0;
23
elseif ispc() && stdlib.has_dotnet()
24
% com.sun.security.auth.module.NTSystem().getGroupIDs();
0 commit comments