added getPermissions action
updated model