Questions tagged [roles]

0

votes
0

answer
7

Views

Implementing wjt roles on the node.js server

I have three roles: 1) User 2) Merchant 3) Admin Each role has its own authorization route: 1) .../api/users/singin 2) .../api/merchants/singin 3) .../api/admins/singin I also have resources: 1) Products But more resources will be added. Products can be deleted, edited, added. For example, I log in...
MegaRoks
1

votes
2

answer
1.1k

Views

Azure Application Insights for Worker Role

I am setting up Application Insights for a worker role, and the documentation states: Add the Application Insights for Web NuGet package. This version of the SDK includes modules that add server context such as role information. For worker roles, use Application Insights for Windows Services. I cann...
Dan O'Leary
0

votes
0

answer
3

Views

How to create a user in App Store Connect?

I am signed in as an admin in App Store connect and I am trying to add a new user with the role of developer in order to give access to my app. I have tried different email addresses (some of which have never been used for an iTunes Connect account) and tried numerous roles such as admin and develop...
Levi K
1

votes
3

answer
58

Views

Amazon RDS - Postgresql role cannot access tables

created a postgresql instance on AWS with the username ziggy. I restored a database to that instance. however I cannot even select any of the tables select * FROM mac_childcare_parcels gives me ERROR: permission denied for relation mac_childcare_parcels ********** Error ********** the owner of tha...
ziggy
1

votes
0

answer
5

Views

Extract roles from REST API in Keycloak

At my company, we need to extract the roles of the logged in user from the REST API that Keycloak provides. We have looked through the Keycloak documentation but can't find the answers we are looking for. Let me explain the flow we want to implement: A user logs in to a client defined in Keycloak an...
Pål
2

votes
0

answer
8

Views

How to use roles in .NET MVC Core

I have tried for days now to implement roles in a MVC project. I have started a new project and chosen Authentication to 'Individual user account'. I added the [Authorize] to HomeControllers Indexpage and everything works. To add a role i included: services.AddDefaultIdentity().AddRoles().AddEntityF...
Karelin
1

votes
1

answer
103

Views

Rails, abilities with cancancan

I am using cancancan to define abilities for my demo restaurant app. Each restaurant has_many employees and each employee has user_id and role attributes. I would like to allow a user to edit a restaurant only if this restaurant has an employee with user_id as the current_user.id and his role is 'ma...
0

votes
0

answer
7

Views

ASP.net C# Hiding/Showing a link based on the User Role

I am working on a project that has different User Roles. I have an Admin Link that is displayed if the User is an admin and hidden if not. I am using: @Html.ActionLink('Home', 'Index', 'Home') @Html.ActionLink('Contact', 'Contact', 'Home') @if (Request.IsAuthenticated && User.IsInRole('Admin')) { @H...
Megan Meluskey
1

votes
1

answer
749

Views

Laravel 5.2 Controller middleware for more than one role

I have a roles administrator, moderator and member in my laravel application. Application have fronted and backend sections. I want to allow access to backend section only for administrator and moderator. I create SuperUsersMiddleware:
1

votes
1

answer
127

Views

Role hierachy in WSO2 IS

I consume the wso2 is administration web service to obtain user information. Using this service I can get all the roles the user is member of, but the roles the user is member of by inheritance. For example, There are role1 and role2. Role2 is member of Role1 in active directory and when I obtain th...
fipries
1

votes
1

answer
1.5k

Views

Worker Role Tracing Logging

I'm working out how to fix an issue with an Azure Worker Role. Given LogManager.GetCurrentClassLogger().Info('In index {0}', item); // in the source Where am I likely to find that logged in a Azure Worker Role Cloud Service VM that I can log into with Remote Desktop?
1

votes
2

answer
1.2k

Views

Role Base Authorization REST API

I'm building a REST API ( using Jersey for rest and Spring for DI and AOP,JDBC Template) for OMS(Order Management System) in which several users with different roles will have access to the resources it contains. let's for simplicity we have three roles : Customer, Manager, Admin Customer will only...
Navrattan Yadav
1

votes
2

answer
870

Views

how to set up multi level authentication in laravel 5.3

How to define multilevel Authentication in laravel 5.3 In this project many role Owner Admin employe end user I need Full project of laravel 5.3 authentication any one send me code email id : [email protected]
Tukadiya Ramesh
1

votes
1

answer
965

Views

WooCommerce - Enabling “Zero rate” tax class to some specific user roles

In wy WooCommerce web site, I'm going to be selling to distributors AND resellers. The problem is that resellers are exempt from TAXES and therefore I need with a custom function to enable Zero taxe rate for certain customer roles (it would be optimal if WooCommerce did it on its own, but it does no...
1

votes
1

answer
1.7k

Views

MVC 5 & Jquery DataTables Column display based on user Role

Using Jquery Datatables in an MVC 5 project. Also using Datatables.MVC5 helper which is making the whole task easier and followed this tutorial to help set it all up for MVC Server Side processing. I am trying to display button columns i.e. Edit | Delete | as the first two columns based on User Role...
Andy Donegan
1

votes
3

answer
58

Views

Drupal: block node editing for specific user(role)

At my Drupal 7 site every registred user can add nodes. But sometimes i'd like to put some users to group e.g. 'Temp ban' and block node add/edit for this users/group. How can I do it?
okolobaxa
1

votes
1

answer
827

Views

Hide or remove navigation items based on user role

I am planing to implement a menu that hides/removes menu items based on the logged in user. Is there a way to use the route Guards to change the DOM or what is the best practice to hide/remove elements from the DOM based on the user roles?
ndridr
1

votes
1

answer
644

Views

Use Different Login Forms in Symfony 3

following setup: I have two different login sections for two different users. First user is a normal user (Entity: AppBundle:User) the second one is the admin (Entity: AppBundle:Admin). I have two different login paths, providers, firewalls and encoders. I can login and logout either as a user or as...
LeBlobb
1

votes
2

answer
644

Views

Dynamically run “ansible-galaxy install -r requirement.yml -p roles/” as a prerequisite before running a role

I'm trying to get the following Ansible playbook to work but cannot figure out how to tell Ansible to either: ignore a check for existence of a role run a ansible-galaxy command to automatically load role before using it Here's my code: - name: Install prerequisite roles hosts: all become: no tasks:...
slm
1

votes
1

answer
5.3k

Views

Oracle ORA-01031: insufficient privileges while creating user

I have created a user, let's call him C##USER from sysdba. Now, I'm trying to create another user from C##USER. Problem is I keep getting the following error: ORA-01031: insufficient privileges I have granted C##USER all privileges and have set the default role to ALL. Nothing works yet... Any ideas...
dzenesiz
1

votes
1

answer
417

Views

Laravel controllers with roles

I have an application which will be a SaaS and is utilizing user roles. Of course, controllers will need to forward different data depending on user roles or permissions, however I think this approach may lead me to huge controllers and I was wondering if there is a smarter way to do this? For examp...
Norgul
1

votes
1

answer
255

Views

Setting AppPool Identity on Windows Server 2016 @ Azure Cloud Service throw COMException “directory property cannot be found in the cache.”

The following code fail when executed on an Azure Guest OS Family 5 (Cloud Service webrole running Windows Server 2016): using (var serverManager = new ServerManager()) { ApplicationPool applicationPool = serverManager.ApplicationPools.Add(name); applicationPool.AutoStart = true; applicationPool.Man...
mawtex
1

votes
2

answer
470

Views

Why is Application Insights Preventing my Worker Role from Starting?

I have an Azure Cloud Service with a single worker role that will deploy, start, and run without fail every time, but I ran into some intermittent problems I wanted to diagnose with Application Insights. I followed directions from this article as well as here. After installing the nugget packages an...
jdmac020
1

votes
1

answer
580

Views

Customizing footer text email notiications based on user role in Woocommerce

I'm trying to edit the Woocommerce customer emails based on whether the user who ordered was a 'wholesale_customer'. If they are i want to edit the footer text to display a different name and maybe change the logo but at this time the name is more important. I'm using the woocommerce_footer_text fun...
Shaun
1

votes
1

answer
88

Views

Redirect subscribers if they are in Woocommerce shop page

There is a lot of plugins available that makes this possible, but they are not for free, so I'm actually trying to restrict shop, checkout and cart page, just for people registered as customers, I test this code below on functions.php file: global $current_user; get_currentuserinfo(); if (user_can...
Kenny Amaro
1

votes
1

answer
42

Views

Wordpress promote subscriber to contributor only by visiting a page

I'm trying to promote my Wordpress users when they visit certain link but I'm not sure how to do that. I found this function and placed it on the page where I want that change to be made. I though it might do the trick, but it won't: function update_roles() { global $wpdb; $author = wp_get_current_u...
DearBee
1

votes
1

answer
3.4k

Views

How to make a discord bot that gives roles in Python?

I want to create a discord bot that gives roles to members in Python. I tried this: @async def on_message(message): if message.content == 'give me admin' role = discord.utils.get(server.roles, name='Admin') await client.add_roles(message.author.id, role)
MikeyJY
1

votes
2

answer
1.4k

Views

Additional user role select field in Woocommerce registration

. A user role selection is needed in WooCommerce registration form. Users should have a pull down menu to select between 'customer' and 'reseller' (IDs) wordpress role. Unfortunately my attempt to assemble code fails. The following code does not assign the selected role and I'm stuck. Registered us...
John
1

votes
3

answer
478

Views

Conditional check if user is logged in Umbraco

How can i check if user is logged in to umbraco from the view(.cshtml)? I would also know how to check the users role. User.Identity.IsAuthenticated always returns false. if( User has role = 'someRole' ) { do stuff } Im using Umbraco version: 7.8.1
1

votes
1

answer
296

Views

RBAC Roles vs Business functions

I am sure that this question was asked a lot of times before. I have been searching on the internet for many days, but everytime I am getting more and more confused. I've read the 359-2012 standard and also books, but still. What really is a role for RBAC? I have seen a lot of confusion where peopl...
Lazaros Kyr
1

votes
2

answer
260

Views

Hide Woocommerce Buy Now button by Ultimate Member User Role

I am trying to remove the Woocommerce “Buy Now” button for the user role “um_member”. I’ve been able to remove the button by logged in user with if ( is_user_logged_in() ) { However, when I try to use the user role snippet from here: https://docs.ultimatemember.com/article/164-getrole if (...
orlafitz
1

votes
2

answer
84

Views

RBAC not working as expected when trying to lock namespace

I'm trying to lock down a namespace in kubernetes using RBAC so I followed this tutorial. I'm working on a baremetal cluster (no minikube, no cloud provider) and installed kubernetes using Ansible. I created the folowing namespace : apiVersion: v1 kind: Namespace metadata: name: lockdown Service acc...
Doctor
1

votes
1

answer
141

Views

Documentation about Roles

some time ago I found an article (Roles: Composable Units of Object Behavior) describing the pros of using Roles versus Interfaces or other ways of dealing with behavior requirements. Does any of you knows where I can find more literature about that, or knows more about Roles? I know that that's alm...
tunnuz
1

votes
1

answer
471

Views

DNN 5 - Role expired, but user can still view pages

I'm testing periodic fee subscriptions in DNN 5. I've set the renewal period on my custom role to 1 day. After 1 day, the subscription shows as EXPIRED, but the user can still view all the pages accessible to that role. Am I missing something?
roman m
1

votes
1

answer
393

Views

Can you recommend me a book about authorization architecture and associated paradigms? [closed]

I come from an ASP.NET background and find the entire roles based authorization scheme limiting to say the least. I've read about Microsoft's new Identity Model and the Geneva Framework with its Claims based architecture but it seems overly complex. In general, I'd like to know more about possible a...
kitsune
1

votes
2

answer
545

Views

Something really confusing about how roles and membership tables establish a relationship

I know how to create users and assign them to roles etc, but when I tried to dig a bit deeper into how roles and membership tables are able to establish a relationship between each other, I got totally lost ( BTW – I do know how foreign/primary keys work ;) ) BTW - I've created tables in databases...
SourceC
1

votes
1

answer
5.4k

Views

What is a minimum SQL Server role allowing trigger creation/dropping?

Prerequisite: There is client/server application written in Delphi32. The RDBMS is SQL Server 2005. A certain application functionality requires creation/dropping of triggers (from the application using ad hoc DDL statements) in the target database. Problem: If a user belongs to roles sysadmin ther...
01es
1

votes
3

answer
1.1k

Views

How to handle different roles with different previliges in PHP?

I would like to know how we can create different 'user Roles' for different users in PHP. example: Administrator can create all types of users, add, view, manipulate data, delete managers, viewers, and workers, etc Managers can only create, workers and viewers, can add and view data, workers can't...
user261002
1

votes
3

answer
1.6k

Views

Extending the RoleProvider GetRolesForUser()

The GetRolesForUser() method in the RoleProvider takes the user login name and returns the list of roles for that user. But in my application this is not enough, I need a few more pieces of information to be able to get the user's roles. How can I get this extra information into the method? I have i...
Farinha
1

votes
2

answer
7k

Views

Wordpress: Create a customized role / user [closed]

I’m farely new to Wordpress but are working on putting a page together which has a very simple purpose. I’m creating it for a customer with little or none IT experience so I want to create a user he can use to login and edit his pages – and nothing more. No settings, no comments, no posts, no...
Mestika

View additional questions