permissions

ADD PortletResource permission for specific users to VIEW custom portlet PROGRAMATICALLY

孤人 提交于 2019-12-11 02:35:46
问题 I want my custom portlet to be view-able by specific users but they're ALL MEMBERS OF SAME GROUP/SITE. i.e... User 1: my custom Portlet is not view-able Admin: my custom portlet is view-able User 2: my custom portlet is view-able How to ADD Portlet-Resource permission for particular user to VIEW custom portlet PROGRAMATICALLY in my Jsp??? Here's my code.. <%@page import="com.liferay.portal.security.permission.ActionKeys"%> <%@page import="com.liferay.portal.security.permission

Permissions require to GRANT EXECUTE

不想你离开。 提交于 2019-12-11 02:27:16
问题 I am creating a group for users who will need to be able to create and delete procs but also grant execute permissions to other users. GRANT CREATE PROCEDURE TO [xxx\xxx] GRANT ALTER ON SCHEMA :: dbo TO [xxx\xxx] However what permissions to I need to grant the group such that they can grant execute permissions to an object? Thanks 回答1: According to the documentation, this is supposed to work: GRANT EXECUTE ON SCHEMA::dbo TO [xxx\xxx] WITH GRANT OPTION; However in my minimal testing it

Laravel 5.5 Permissions - User does not have the right roles

谁都会走 提交于 2019-12-11 02:20:36
问题 I'm trying to find a solution in a use case where the admin user does not have the assigned role. In dashboard view it doesn't render the url for users, while if I directly access the dashboard/users, I get: Spatie \ Permission \ Exceptions \ UnauthorizedException user does not have the right roles app/Http/Kernel.php protected $routeMiddleware = [ .... 'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class, 'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class, ]

Facebook: Is there a way of getting the current_location of users who are not my friends? Graph API or FQL

℡╲_俬逩灬. 提交于 2019-12-11 02:19:14
问题 Let's imagine I have a user ID and username. I manually open her Facebook page (namely, http://www.facebook.com/username. And there it is! The "lives in" field appears saying she lives in wherever. Nevertheless, when I try to fetch her current_location using FQL (using Python): q = 'SELECT uid, username, current_location FROM user WHERE uid=%s' % aUser I get None in the field current_location. On the other hand, I can easily retrieve the current_location from my friends (I mean, for those

Facebook SDK, How do I check if a user has accepted my permissions?

半世苍凉 提交于 2019-12-11 02:14:44
问题 I've got to a point in my app where a user can login via the Facebook SDK. The app requests read and publish permissions. Is there a way to check if they have accepted the publish permissions before carrying on? The permission is "publish_actions" . I tried doing Session.getPermissions(); but only the read permissions are listed there (basic_info, user_birthday, user_friends) . It seems like there is no way to check if the user accepted my publish permission, is there a possible workaround to

Terraform S3 bucket creation causes not authorized

无人久伴 提交于 2019-12-11 02:06:20
问题 Question What AWS permission is required to create a S3 bucket, which causes HTTP/1.1 403 Forbidden on ec2/DescribeAccountAttributes and s3/CreateBucket. Or how to get further information on AWS side to further trouble-shoot. Added all permissions on EC2 and S3 to the user account, but did not solve the problem. Note If I have all the permission as the account owner (using different account), this will not happen. Problem Trying to create a S3 bucket. resource "aws_s3_bucket" "s3_bucket

Magento Connect Manager & ftp write file permissions

穿精又带淫゛_ 提交于 2019-12-11 01:59:30
问题 After transferring my site from development domain to a live domain I have tried to use the magento connect manager to install an extension, however I keep getting: CONNECT ERROR: Please check for sufficient ftp write file permissions. Your Magento folder does not have sufficient write permissions, which downloader requires. I have set my folder permissions to be: root: 777 downloader (and recursively into directories only) 777 downloader/config.ini 666 media 777 media/downloadable 777 var

Not enough permission to run typeperf.exe

心已入冬 提交于 2019-12-11 01:53:58
问题 Im Trying to run typeperf.exe with an php function exec(); this is the command ( for cpu load % ) typeperf -sc 1 "processor(_Total)\% Processor Time" When im runing the command through a command prompt it is returning me the wanted result. But when calling it trough exec(); Im getting So I ran the command whoami through php to know what is the php user, I got nt authority\iusr So I setted the username to be in the Performance Log User Group as mentioned. And deseperatly added everyone in the

Difference between getExternalStorageDirectory and getExternalStoragePublicDirectory?

☆樱花仙子☆ 提交于 2019-12-11 01:43:28
问题 According to google one returns the primary shared/external storage directory and the other gets a top-level shared/external storage directory for placing files of a particular type. Can anyone explain in simple language and example? 回答1: I am going to assume that you have used a Windows computer sometime in your life. Environment.getExternalStorageDirectory() , if this were Windows, would return C:\ . Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES) , if this were

SACL on Services using C# || get a handle to a service that has the ACCESS_SYSTEM_SECURITY rights using C#

纵饮孤独 提交于 2019-12-11 01:38:28
问题 Anyone have any idea how to get the SACL's on a remote service using C#? I've tried numerous different methods, and basically nothing works. I can get the DACL's and SACL's on the local machine, but getting either on a remote machine doesn't appear to be possible. What I've done is create a class called ServiceSecurity that inherits from NativeObjectSecurity and acts a lot like the RegistrySecurity class. Below are two of the constructors that I have: public ServiceSecurity(string serviceName