How to manage user permissions after payment with Vue? - vue.js

i want to make an app with Vue where a user only get certain permissions, like write a post, after payment, but I don't understand how that can be done. There is any content where this is explained, or anyone can point me a way? Thanks.

VueAcl
That's a pretty good permission check plugin that you can check out

Related

How can i introduce my own permission in a plugin

I would like to write an plugin for the cockpit app. The feature i would like to add includes also an additional item in the drop-down menu. However i also would like to introduce my own permission. If the role of the user has the permission the item in menu will be shown otherwise not. Is this possible at all? And how does at look like? I checked the online documentation but couldn't find anything about it. I hope someone could help me...
The only way to introduce new permissions is through a microservice in its manifest. With purely UI you cannot add those.
As an alternative you could base your plugin on any property of the user. You probably would than want to have a second plugin to set/manage this for a user.

Automatic login in website using login and password list

I'm trying to do something but I have no idea where to start, the idea is as follows:
I have a website where I'm testing the logins registered, I basically have to put login and password starting from a list that I get and check if the registration is or is not working, there are days that the list I get is huge and I wanted to automate it, no matter which way (js, vbs, c #) only automate...
I will try to explain better, for to be no doubt
I have a list of logins and passwords I want to automate, where I put the logins and passwords, and the "program" will testing one by one and separating what worked and what did not.
I'm not asking for someone give me all set, I just want to know where to start, what better way, so I can do it myself.
if anyone can help me I will be grateful, I hope I have explained the best way for you to understand.
sorry for my Inglês, I am writing this before going to work and I'm already late haha and Inglês is not my native language

FBGraph and Ruby on Rails

Hello and excuse me again
I have the next problem:
I am using fbgraph on ROR3. I understand that My application need permissions for to know about facebook user. So I need ask for permissions.
How could my application (facebook canvas) ask permissions from like button?
If need my code please to comment.
Thanks in advance
There are several ways to go about it, one of which is the FB.ui route, using the "oauth" method. You wouldn't necessarily use it directly from a "Like", but rather as the result of a page refresh to a non-fan-gated page or specific user action.

yii: serve a file when logged in

I have pdf files in a htaccess-protected directory that I want to show to some users in Yii application.
How is best to solve that? I understand it should be done inside Yii, not with a separate script as it needs to check if a valid user is logged in.
Access control filters
You would do your appropriate security checking (user is in group, or has permission or whatever) and then you would use readfile or something similar.
Do you have code already that isn't working? Or did you just need help with what approach to take?
Thanks!
I got some idea from this link:
http://harrybailey.com/2011/07/yii-rewrite-files-or-images-for-download-or-display/
In short: made a new actionfunction into controller and in that function sending headers and readfile.

Grails: How to get information about the currently logged in user?

I am actually feeling a bit dumb for asking this but I tried for half a day now and can't find a way to get information on the currently logged in user in my controllers as well as my views.
I tried several suggestions I found on the web like "authenticateService" etc.
Now, it is possible that I have a misconception about the basics of Grails there. I come from other frameworks where a task like this is a matter of {{ request.user }} and I am done with it.
My exact need is to be able to access the ID of the currently logged in user in order to serve a custom navigation.
Thx in advance for your help.
def user = springSecurityService.currentUser
always good to try the docs:
http://burtbeckwith.github.com/grails-spring-security-core/docs/manual/index.html
In gsps, there is a specific tag, which we use like
<sec:loggedInUserInfo field='firstName'/>
again, its in the docs posted above.
Nowadays, I think the way to do it is:
def user = getAuthenticatedUser()