In hasPermission method, a situation was considered: if no user and group, the permssion will be true. This is for the command line invocation.
In hasPermission method, a situation was considered: if no user and group, the permssion will be true. This is for the command line invocation.