Skip to content

Commit

Permalink
convenience method, especially from views.
Browse files Browse the repository at this point in the history
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6580 71c3de6d-444a-0410-be80-ed276b4c234a
  • Loading branch information
kohsuke committed Jan 12, 2008
1 parent e260817 commit f7d7507
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/main/java/hudson/model/AbstractItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ public void checkPermission(Permission p) {
getACL().checkPermission(p);
}

/**
* Short for {@code getACL().hasPermission(p)}
*/
public boolean hasPermission(Permission p) {
return getACL().hasPermission(p);
}

/**
* Save the settings to a file.
*/
Expand Down

0 comments on commit f7d7507

Please sign in to comment.