Jump to content

In Api: What is used to narrow User "IsAdmin"


Recommended Posts

Posted (edited)

Sorry I just can't find how to narrow the list of Users into Admins only...

 

I only want to Notify the admin accounts in their inboxes that my plugin did something.

 

I am using IUserManager Interface to get user data.

Edited by chef
Posted

Found it under Policy!

 

"user.Policy.IsAdministrator"

Posted

it sounds like you are not implementing this plugin correctly, to be  honest.

Posted (edited)

okay, back to the drawing board then....

 

yep I can see now that sending to an admin user is not what I thought it was.

 

notifications are now working.

 

 

Just out of curiosity, is this what you would like to see from a plugin like this in notification: (my email is now sent through the notification class which implements the INotificationRepository) I'm tryin' here :)

 

 

isthiswhathewants.png

Edited by chef
Posted (edited)

@@Luke I get it. You're saying to only email out info from the Notifications.

 

Instead of what I have now, which is using the library manager to get newly added items.

 

Sorry it took me a bit to catch on.

Edited by chef

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...