protected boolean hasAccess ( ) throws EFapsException { //Admin_REST return Context . getThreadContext ( ) . getPerson ( ) . isAssigned ( Role . get ( UUID . fromString ( "2d142645-140d-46ad-af67-835161a8d732" ) ) ) ; }
Check if the logged in users has access to rest . User must be assigned to the Role Admin_Rest .