mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-29 20:45:20 +00:00
[JEP-223] Overall/Manage permission
Co-Authored-By: Esther Alvarez Feijoo <ealvarez@cloudbees.com> Co-Authored-By: aHenryJard <ajard@cloudbees.com> Co-Authored-By: michael cirioli <mikecirioli@gmail.com>
This commit is contained in:
1 parent
5c9ba1428b
commit
55b2bc7f3f
19 files changed
+117
-9
No files matched your search
@@ -1062,6 +1062,10 @@ public class Functions {
|
||||
Descriptor d = c.getInstance();
|
||||
if (d.getGlobalConfigPage()==null) continue;
|
||||
|
||||
if (!Jenkins.get().hasPermission(d.getPermission())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (predicate.apply(d.getCategory())) {
|
||||
r.add(new Tag(c.ordinal(), d));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user