RafaelVidaurre / angular-permission

Simple route authorization via roles/permissions
MIT License
1.13k stars 212 forks source link

Unknown provider: $permissionProvider #414

Closed bampakoa closed 7 years ago

bampakoa commented 7 years ago

After upgrading to version 5.3.0, I get the error Unknown provider: $permissionProvider when trying to use it inside the application config block.

$permissionProvider.setDefaultOnUnauthorizedMethod('detachElement');

Angular: 1.6.4 UI router: 0.4.2

bampakoa commented 7 years ago

After some digging I noticed that the version of the distributable files does not seem correct:

version v5.1.1 - 2017-01-31

Maybe a bower upload problem?

masterspambot commented 7 years ago

I'll check this out.

On Tue, 9 May 2017, 12:31 Aristeidis Bampakos, notifications@github.com wrote:

After some digging I noticed that the version of the distributable files does not seem correct:

version v5.1.1 - 2017-01-31

Maybe a bower upload problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Narzerus/angular-permission/issues/414#issuecomment-300125068, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjeAZD89ukAUokiZKpIQN3zYyUZEGScks5r4EBvgaJpZM4NUEY_ .

masterspambot commented 7 years ago

Duplicate of #415

austinthedeveloper commented 7 years ago

Can anyone verify #415 fixes this issue? I'm still getting the same error.

I have removed it from bower folder/bower.json and re-installed to ^5.3.0 (version v5.3.0 - 2017-05-05) but I'm still getting the error.

bampakoa commented 7 years ago

@austinthedeveloper I can confirm that the error is gone in 5.3.1.