This commit is contained in:
thosakwe 2017-02-01 18:38:18 -05:00
parent 315709e39a
commit deff36ad36
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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(

View file

@ -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: