permissions

Access denied error message when trying to create a shared link to a folder in Box

限于喜欢 提交于 2019-12-10 21:13:35
问题 So following on from my previous question around permissions to add collaborators, I am now having further permissions issues when trying to create a shared link to a folder in Box using the API. So to confirm, I have the "Manage an enterprise" scope now enabled on the API account. Here is the error message I am getting back: {"type":"error","status":403,"code":"access_denied_insufficient_permissions","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Access denied -

How do I get write permissions in the home folder (or the appdata folder, for windows) in Java?

*爱你&永不变心* 提交于 2019-12-10 21:07:07
问题 I am trying to save some user settings in the home/appdata folder, but when I use dir.canwrite() it returns false. This is the code I use to determine the home/appdata folder: public static String getAppDataPath() { if (System.getProperty("os.name").contains("Windows")) { return System.getenv("APPDATA"); } else { return getUnixHome(); } } public static String getUnixHome() { String home = System.getProperty("user.home"); return home != null ? home : "~"; } And this is the code trying to mkdir

SQL Server: EXECUTE AS clause of stored procedure not granting sysadmin permissions

眉间皱痕 提交于 2019-12-10 20:31:48
问题 I developped a stored procedure in order to restore a database from a backup file and add an application user to it. This stored procedure belongs to the master database. The issue is that my IT department does not allow me to use an admin user, only to use an EXECUTE AS statement with a sysadmin user. I can restore the database but I can't find a way to add the user at the end of the process. The code I use: CREATE PROCEDURE [dbo].[myProc] @database VARCHAR(50) WITH EXECUTE AS 'aSysAdminUser

Permissions denied on sql query

吃可爱长大的小学妹 提交于 2019-12-10 20:26:00
问题 I'm trying to execute the following query through classic asp recordset - SQL = "Select P_Name as P_Name, P_Description as P_Description from L_PagePermission inner join A_Permission on p_permissionID = pp_PermissionID inner join A_Page on P_PageID = PP_PageID where P_PageID = 85 order by p_Name" Although I've ran into a problem with permissions. So the error that i am receiving is - Microsoft OLE DB Provider for ODBC Drivers error '80040e09' [Microsoft][ODBC SQL Server Driver][SQL Server

SQL Server 2012- Create Database permission denied in database master (Error 262)

戏子无情 提交于 2019-12-10 20:23:17
问题 I want to create a new database on SQL Server 2012 using SQL Server Management studio. I ran SQL Server Management studio as administrator and logged in using Windows Authentication, but I still get this error: Create Database permission denied in database master (Microsoft SQL Server, Error 262) 回答1: From this blog and also from this link 回答2: Run your SQL Server Management Studio Express.exe as an administrator. That's it. I faced same problem and I tried to run my SQL Server Management

Auto allow webcam access using Puppeteer for Node.js

隐身守侯 提交于 2019-12-10 20:00:02
问题 I'm setting up a test that involves starting a webcam video session. So far all is working fine and doesn't require any user interaction except for granting access to the webcam. When the third party library I'm using makes the call: navigator.mediaDevices.getUserMedia({audio: true, video: true}) the browser opens a prompt asking the user to allow access. What I'm looking for is a way to grant access without user interaction. I've tried puppeteer's page.on('dialog'... but that doesn't get

Wagtail set additional permissions for MyPage

江枫思渺然 提交于 2019-12-10 19:47:12
问题 Wagtail newbie here. I am trying to add some additional permissions to specific models, but nothing shows up into the "wagtail admin". I can do this the "django" way but I have the impression that wagtail could handle this type of permissions. I could not find any hints in the wagtail documentation. I have a new model named "MyPage": class MyPage(Page): [...] class Meta: permissions = ( ('view_restricted_document', 'can view restricted documents'), ) How do I make this permission available in

.Net 4 CAS - Request for the permission of type 'System.Net.WebPermission, System, Version=4.0.0.0, Action: Demand

試著忘記壹切 提交于 2019-12-10 19:44:47
问题 My build server runs a SpecFlow acceptance test DLL through Gallio. This calls a WCF service and performs our acceptance tests. Running locally works fine. However on the build server (even with Cruise Control running under my account) I keep getting System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Action: Demand This build server is running .Net 4. Is there

legacyCasModel=“true” and dynamic data/operations

淺唱寂寞╮ 提交于 2019-12-10 19:09:30
问题 This is similar to Odd Exception in MVC 3 Project. We have an ASP.NET 4.0 application running in full trust. We need to have the following line in our web.config, otherwise one of the libraries we are using does not function. (As it explicitly uses the now obsolete CAS model from previous versions of .NET). <trust legacyCasModel="true" /> Given this setting, we are unable to use the dynamic keyword or certain features of ASP.NET MVC which rely on it. As an example, the following code causes

How to play video which is at some URL location in android's video view?

不打扰是莪最后的温柔 提交于 2019-12-10 19:08:17
问题 I am trying to play youtube video within video view but getting error(can't play this video) all the time(on device as well as on emulator too). Please help me with this problem. Thanks in advance. import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.widget.VideoView; public class AndroidVideoView extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); VideoView