7
This commit is contained in:
parent
315709e39a
commit
deff36ad36
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
# security
|
||||
[![version 0.0.6](https://img.shields.io/badge/pub-v0.0.6-red.svg)](https://pub.dartlang.org/packages/angel_security)
|
||||
[![version 0.0.7](https://img.shields.io/badge/pub-v0.0.7-red.svg)](https://pub.dartlang.org/packages/angel_security)
|
||||
[![build status](https://travis-ci.org/angel-dart/security.svg)](https://travis-ci.org/angel-dart/security)
|
||||
|
||||
Angel middleware designed to enhance application security by patching common Web security
|
||||
|
|
|
@ -30,7 +30,7 @@ class Permission {
|
|||
getOwner(obj)}) {
|
||||
return (HookedServiceEvent e) async {
|
||||
if (e.params.containsKey('provider')) {
|
||||
var user = e.request.grab(userKey ?? 'user');
|
||||
var user = e.request?.grab(userKey ?? 'user');
|
||||
|
||||
if (user == null)
|
||||
throw new AngelHttpException.forbidden(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel_security
|
||||
version: 0.0.6
|
||||
version: 0.0.7
|
||||
description: Angel middleware designed to enhance application security by patching common Web security holes.
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue