Hello,
I created a plugin that add an item in the profile menu :
plugin.addProfileItem = function (data, callback) {
data.links.push({
id: 'myplugin',
route: 'myplugin',
icon: 'fa-bar-chart',
name: "My Plugin",
visibility: {
self: true,
other: true,
moderator: true,
globalMod: true,
admin: true,
}
});
callback(null, data);
};
The purpose is to allow other users to see the new page of the user of their choice.
With the visibility attribute, other users see the item in the menu but when they click on it :
Access Denied
You seem to have stumbled upon a page that you do not have access to.
My main question is : Where could I set up access rights in this case ?
Two more questions :
- How to get the uid and userslug (not the current user but the profile user) on my new page ?
- Same question for the uid on server side (in my plugin code)