The following is an example of using this function. This example also makes use of a simple function stringOf(Permission) which allows you to print the results.
Item i = item(fullName(current Module))
Permission perm = getPermissions(i, "fredbrooks")
print stringOf(perm)
See