Most voted "permissions" questions
69 questions
Sort by count of
-
9
votes1
answer167
viewsIs it wrong to use stab wounds in the Laravel view to present elements to the master user?
I wonder if it is problematic to do this kind of validation in the views of Laravel. Example: Only a master user can delete certain record, so I present the delete button only if the user is master…
laravel laravel-5 view permissions access-controlasked 7 years, 11 months ago Felipe Paetzold 4,527 -
7
votes2
answers1017
viewsPrevent DROP TABLE
I would like to prevent deletions on a table in Sqlite. CREATE TRIGGER nao_deletar_tabela BEFORE DELETE ON tabela BEGIN SELECT RAISE(IGNORE); END; It worked! Whenever one runs DELETE, nothing…
-
7
votes3
answers9654
viewsHow to give permission to other users to upload content to my project on Github
I am doing an academic work and created a project and wanted each member of the group to create a branch and upasse part of the code used at work, but when someone tries to create a branch in the…
-
6
votes1
answer360
viewsWhat are the risks of saving files to the Apache server with PHP and how to avoid them?
I’m recording an HTML file with part of a page, to be used later by HTMLDocX in the generation of a file .docx (vine this question related). To record use ob_start and ob_get_clean to put the…
-
6
votes1
answer142
viewsHow does "umask" work in PHP and when should we use it or not?
I was reading the documentation of umask and I came across this: When PHP is being used as a server module, the umask is Restored when each request is finished. Translating: When PHP is being used…
-
5
votes1
answer486
viewsjavax.persistence.Persistenceexception (no security manager: RMI class Loader disabled)
I created a policy file that gives permission for my machine to run both the client and the server, I also passed the ports to them. Inside the server I prompt RMI Security (since if I remove it the…
-
4
votes2
answers318
viewsPHP mkdir vs chmod
I was creating folders dynamically by PHP, when I came across the following situation. Occurred Create a folder tmp with permission 777 in /www mkdir('/www/tmp', intval('0777',8), true); Turns out…
-
3
votes1
answer916
viewsUnderstanding the Django 1.7 permissions system
I have an app called forms_and_models which I use for study. In documentation of Django 1.7 says that: Assuming you have an application whose app_label is foo and a model called Bar, to test basic…
-
3
votes3
answers451
viewsPermissive issues when creating Linux server folders using mkdir
I have a PHP system using Laravel 4.2 where I use the mkdir command to create a folder in the Storage/pdf directory, the command works in the Windows Dev environment, but when climbing to the UOL…
-
3
votes1
answer57
viewsGithub Collaborators deleting Branchs
On Github how do I set up so that my project’s collaborators do not delete the branchs? There is no restriction to delete in the project’s Settings. Thank you
-
3
votes1
answer1077
viewsLogin with permission levels
I have a login system that, if the user is an administrator, will be redirected to one page and if common, to another. That column ativo is what defines whether a user is admin(1) or not(0).…
-
3
votes0
answers125
viewsError giving bin/folder index:reindex
My Magento control panel keeps showing this message One or more indexers are invalid. Make sure your Magento cron job is running. I saw I had to give one php bin/magento indexer:reindexbut whenever…
-
3
votes1
answer326
viewsHow to open an executable that requires elevation via C#?
The code provided below seeks to be able to open an executable file so that it is possible to pass arguments to it once it has been opened. For the code as it is displayed, error returned is:…
-
2
votes1
answer1190
viewsAccess denied edit files via SFTP on Ubuntu after upload via Wordpress
I have an Ubuntu VPS (LAMP) and manage PHP files from the folder www via SFTP. I use Wordpress on my server, with it I upload folders and files and I can also delete them. Via Wordpress when I…
-
2
votes1
answer189
viewsASP NET MVC authentication
What better way to separate permissions for logged in users? Would it be using annotations and roles? Because I want to release certain pages and certain functions depending on the permission of the…
-
2
votes1
answer96
viewsAsp Net MVC Block Permission
I am separating the permissions in my application, I am using a custom authorization with the Authorize class, I can already separate permission by action and controller, I would like to know how to…
-
2
votes1
answer173
viewsAsp Net MVC Authentication Extending Authorizeattribute
I am doing authentication extending Authorizeattribute, I have two doubts, in my DDD application, I will create this class in DAL? And how I leave this global class to use on all controllers?
-
2
votes1
answer256
viewsApplication does not open in windows XP because it does not have administrator permission
I am having a problem, the executable of my program does not run on windows XP because of user permission issues. On other systems, you put it to run as administrator and it works normally.…
-
2
votes0
answers122
viewsHow to insert Runtime permission into a webview that gets the user’s location?
So.. I’m starting to create a webview and the site I’m basing on has an option to get the coordinates from a certain location, on the site this works perfectly, but when I put on APP he opens the…
-
2
votes1
answer68
viewsHow to create an . exe that you don’t need to run as an administrator?
I made a script for a trainer for FIFA15, it’s more something to help the community, now I’m generating a version for everyone to be able to run. Follows the code: using System; using…
-
1
votes0
answers45
viewsphp imagemagic cannot use Ghostscript to render PDF
In my hosting, Imagemagic renders PDF to JPEG normally. But I need to make it work on my MAMP test site - making websites without a test site sucks! Imagemagic is apparently OK on my MAMP running on…
-
1
votes1
answer1455
viewsBlock routes according to user permission Angularjs
I have a system where I log in a user, in case everything right the server returns me an object and I store this object in sessionStorage. I can recover this object to do some validations, e.g.:…
-
1
votes1
answer300
viewsHow to release a specific folder through the use of htaccess?
I need to release inside lib only the folder Barcode. The rest is inaccessible. How can I do that? What I currently have is: Order Deny, allow Deny from all…
-
1
votes1
answer1022
viewsCheck Read and Write Permission in folder with C#
I would like to check if the user has read and write permission in a given path. Update: The folder will most often be in a network path.
-
1
votes2
answers189
viewsGenerate files with all permissions
I am generating *.csv files from this: BufferedWriter strW = new BufferedWriter(new FileWriter(caminhoCSV.toString())) However the generated files are only with read permission, how could you change…
-
1
votes1
answer485
viewsDjango without models view in common user admin even if you have permissions and are in the same group
Good afternoon, So I’m trying to give permissions that already come in Jango to an ordinary user who even belonging to the group cannot access the models that are granted to him. Someone had this…
-
1
votes1
answer344
viewsPermission of GIT files
All my systems I have are giving permission problem after I give one git pull, so that for example I have a folder where my js and css files are generated mimicked. Folder Assets/min/, after I give…
-
1
votes2
answers66
viewsPermission system
I have a system with login required. What should happen: If the "active" column is = 1 redirects to a given page, if = 0 redirects to another. <?php if (!empty($_POST) AND (empty($_POST['id']) OR…
-
1
votes2
answers491
viewsLogin system with permission
I have a login system that, if the user is an administrator, will be redirected to one page and if common, to another. The table: For this, I have a column in the table that stores active call…
-
1
votes0
answers176
viewsProblems to unzip files in RAR on Linux UBUNTU
good afternoon! I have a server that runs on a Cloud Web server LINUX UBUNTU SERVER, 7 years ago, I migrated to another local server also with LINUX UBUNTU SERVER. In Cloud Linux APACHE with PHP AND…
-
1
votes1
answer1358
viewsAccess Denied when trying to delete directory with PYTHON
I have several folders, and within these, several other folders, and I need to enter one in order to delete other folders (Yes, there are many nested folders). The name of the folders that I should…
-
1
votes1
answer617
viewsGrant permission to a new user in SQL Server 2014
I’m trying to assign permissions to db_datawriter and db_datareader a new user in SQL Manager The following steps have been executed: -- criação do usuário CREATE LOGIN apostila WITH PASSWORD =…
-
1
votes0
answers31
viewsSignedxml in NET 2 vs. NET 4.5
I have a web application in Asp.net, which consumes a webservice in Delphi and that it uses a DLL created in C# to perform signatures. With the web application installed on IIS, it shows an error.…
-
1
votes1
answer44
viewsDoubt on authentication/authorization based on access profiles with Webapi Asp.Net Core MVC
I have here a Windows Forms + Sybase application that has an authentication scheme based on access profiles. The diagram of the database is as follows: On the table Permission we have descriptions…
-
1
votes1
answer40
viewsIs it possible to customize the native browser permissions dialog?
Can anyone tell me how I can (if it is possible) manipulate via JS the authorization notification to activate the client browser microphone? My goal is not to access without the user’s permission…
-
0
votes1
answer974
viewsUsing Ftpclient I cannot send file to FTP server. Problem with permission
I’m developing an android app that accesses an FTP server where I store backup files. I’m using it as a base in that tutorial. The FTP server is Cesarftp. The operating system is a Windows Server…
-
0
votes0
answers65
viewsProblem with file access
I have a serious security problem and I really don’t know how to fix it. I have some folders with sector budgets on the same server that runs the intranet system we have. I set folder by folder the…
-
0
votes0
answers697
viewsHow to access /localhost/?
I installed Apache2 with Mysql and Phpadmin in a notebook with Ubuntu 15.10. I did this using an administrator profile user. Now, I’m wanting to access the /localhost/ with another user but I’m not…
-
0
votes1
answer324
viewsConnect Java system to database on server
I have a Desk system in which I am trying to connect to a database that is on the server. But every time I try to connect the following error: java.sql.Sqlexception: null, message from server: "Host…
-
0
votes2
answers381
viewsFile permission on Linux
Hello, my question is not exactly about programming issues, but about Linux and its file access permissions. Recently, I had to change the permissions of two system files into directories that…
-
0
votes1
answer881
viewsCreating new users through Shell Script
I’m trying to create a shell script to add new users to the GNU/Linux system But without entering native commands like adduser or useradd in the script, it would be something in the nail. I have…
-
0
votes1
answer806
viewsPermission issues in the directory of the user. How to reset permissions?
I have a problem in my briefcase /media/tmp/ and /media/catalog/product/ of the Gento. When trying to upload the images of the products in the creation of the product, the image is sent to the…
-
0
votes1
answer392
viewsAccess permission for a PHP + AD + Oracle system
Good morning, I’m new to PHP and I’m starting a system for the company I work for, generating reports. Currently my PHP code authenticates with an Active Directory normally, and when connecting, it…
-
0
votes2
answers1129
viewsPermission Control in c# and Windows Form
I would like to create in C# with Windows Forms ( basically equal Windows folder permission), access levels for users, but not as level 1, 2 and 3, but for example: User A can only view a customer…
-
0
votes1
answer195
viewsPermissions error in Wordpress - Nextgen Gallery
Hello! I am using the Nextgen plugin in Wordpress and now it is presenting the following error when I will create a gallery: Could not write to file. Please check filesystem Permissions. Filename:…
-
0
votes0
answers303
viewsFor geolocation to work on the webview
I looked at several topics on this, but as my project is a little different, I couldn’t make the adaptations. I need to enable geolocation for the map of a page of my site, which is inserted via…
-
0
votes2
answers748
viewsLimit access in app areas to different users
I’m working on an app project for a company and I ended up getting into a problem I didn’t find how to review it. I would like to limit access to certain parts of the app to different users. Ex.:…
-
0
votes1
answer166
viewsPermission error on server
Warning: move_uploaded_file(upload/PaperCutMF15-Pet Center Comercio e Participacoes S.A., BR.license): failed to open stream: Permission denied in…
-
0
votes0
answers246
viewspermission of Django
Good afternoon, I am wanting in the template to make a loop to disable a button according to the custom permission .. The model code is: # -*- coding: utf8 -*- from __future__ import…
-
0
votes1
answer232
viewsLogin with permissions Laravel 5
I have a login system with permissions done with Auth do Laravel, where there are options "Student" and "Teacher" to choose. For example: if he is a teacher, he will come back with a screen to…