Questions tagged [restriction]
A restriction is anything that constrains or limits the code in some fashion.
903
questions
0
votes
1
answer
20
views
How to restrict page access for non-tagged users
As you can read from the title, I'm really struggling to restrict non-tagged users from a specific page. I currently have a default blog called 'news' and a blog called 'course' for customers who ...
0
votes
0
answers
9
views
Orbitdb docstore restict delete to the creator
I'm trying to understand how orbitdb works.
I've got several nodes that need to communicate between each other. The first step I want to achieve is when they start, they announce themselves and write ...
0
votes
0
answers
14
views
Woocommerce memberships restrict content
It should be quite simple, but I just can't restrict content for non-members via the metabox. Setting it like on the attached picture won't restrict it neither for the members with Regular membership ...
0
votes
2
answers
33
views
Restricting Edit if Some Conditions are Met
In google sheet, is it possible to restrict someone automatically when one or more conditions are met?
For instance:
A test is given to a candidate via googlesheet
Administrator of the test want to ...
0
votes
0
answers
26
views
How to restrict a class to be used only in the android project
I have a project with a common library (P-CL) which has 2 modules (CL-A and CL-B), one of them contains a class (RestrictedClass) and the other use it. I also have some other libraries outside the ...
0
votes
5
answers
4k
views
How can I restrict a Telegram bot's use to some users only?
I'm programming a Telegram bot in python with the python-telegram-bot library for python3.x It's a bot for private use only (me and some relatives), so I would like to prevent other users from using ...
0
votes
0
answers
12
views
Restrictions for positive and stationary conditional variance in GARCH(m, s) model
I'm looking at an GARCH(m,s) model and I want to know what restrictions on α0, α1, . . . , αm and β1, . . . , βs are needed to ensure positivity for the conditional variance. Also, under which ...
0
votes
0
answers
97
views
Restrictions for users to manipulate entities in .NET using microservices architecture
I'm working with entity-level constraints and the challenge is to do this in the best way with the microservices architecture.
In my scenario, I need to restrict what users can see, edit and register ...
0
votes
1
answer
74
views
WKWebview and web content restrictions
I have a very specific issue with the wkwebview. When a user opts to use the Settings / Screen Time / Content Restrictions / web content / Allowed Websites Only then the user will be presented with a ...
5
votes
2
answers
3k
views
Restrict access to certain folders using NSOpenPanel
I'm using NSOpenPanel to allow a user to select a folder to save documents into. I would like to restrict what folder (in terms of hierarchy) they can save into. Essentially, I want to prevent them ...
458
votes
22
answers
833k
views
What does the 'static' keyword do in a class?
To be specific, I was trying this code:
package hello;
public class Hello {
Clock clock = new Clock();
public static void main(String args[]) {
clock.sayTime();
}
}
But it ...
0
votes
0
answers
12
views
Extension Paid Membership Pro with error restriction
The extension Paid Membership Pro restricted all pages on my site and all pages returned to an empty homepage when I did customize my homepage.
Currently, only admins can view pages. Neither simple ...
1
vote
1
answer
67
views
Anylogic - restrict access for pedestrian with a specific parameter
I am an Engineering Student and as part of my diploma thesis, I am simulating the passenger changeover process in metros using the Anylogic Pedestrian Library.
In the simulation, it often happens that ...
0
votes
0
answers
46
views
Restriction on coefficients =/= 0 in VAR models in R?
I would like to run a VAR model with restrictions on the coefficient matrices. I know that it is common to impose some zeros, manually or by significance. In R, the vars package includes the restrict ...
0
votes
0
answers
16
views
How to restrict content, search result by users origin
I hope someone would be able to give an answer or suggestion for the following.
I have an application (Django/bootstrap/postgres) that contains books from in different languagues i.e. English, Arabic, ...
1
vote
2
answers
1k
views
How to integrate restrictions for user like Screen time/ Parental control in iOS app?
How to integrate screen time/ Parental control API in iOS app. Is screen time api available?
I tried with MDM(Mobile device management) but I am unable to create the MDM CSR. As there is no option for ...
0
votes
1
answer
50
views
Can we restrict users from installing apps from Google Cloud Marketplace?
I am working on a GCP project and I would like to understand if there is way to limit/restrict a group of users or specific users from installing applications from Google Cloud Marketplace. For ...
2
votes
1
answer
7k
views
Sharepoint survey - Condition to multiple responses
I have a sharepoint survey in which the first question is of type choice, where you have to chose a person. The survey allows multiple responses, and I was wondering if I could put a condition or ...
2
votes
1
answer
3k
views
Only logged in users should be able to view product in WooCommerce
I want to restrict WooCommerce products, shop page and category pages to logged in users only.
I do not want to achieve it with any plugin.
Please let me know if anybody done it before with any hook/...
-2
votes
2
answers
31
views
Allow specific user roles to log into WordPress site
I built up a membership site and i want only user can login if they have any of these user roles: administrator, tutor_instructor and club_members.
Could you please advise.
Thank you.
0
votes
0
answers
19
views
execute php script in sandbox or with restricted params?
I need to test a php script's output. It's possible this script will consume too many resources, and I need to check it's output so that it matches a particular format. What's the best way for me to ...
1
vote
0
answers
13
views
what Domains to add on Google API Website restrictions
I wonder which Domain names i have to enter when i want to Test the Google API Services from the Local Mashine and Postman.
0
votes
0
answers
32
views
Array subset with Restrictions
You are given an array A of N elements such that each element has a beauty A[i].
Your need to choose a subset of elements from array A with the max possible sum. It is given that the elements of the ...
0
votes
0
answers
30
views
Registricting folder access based on .htaccess and cookie variable
I need to add a condition in .htaccess file to check if a user is logged in (cookie value SESS@@@@@@@) and based on the condition i need to grant access to folder.
Sample Cookie name: ...
0
votes
1
answer
61
views
How do I hide the "Cloudcommons" field for a specific group in the Hybris Backoffice search tree
I am using Hybris version 20.05(Cloud).
There is a "Cloudcommens" field in the backoffice tree.
But if there is "TestRabia" in the group of the logged in employee, I don't want the ...
0
votes
0
answers
15
views
Acumatica Item Master Field Restrictions
I am doing some research on the Item Master in Accumatica, for the purpose of writing some Working Procedures for our Engineering Group to support our transition to this system.
What are the field ...
1
vote
3
answers
199
views
Restrict document.onkeydown to once a second
I was wondering if there was a way to restrict document.onkeydown to once per 1000ms (1s).
Here is my code:
document.onkeydown = function(e) {
switch (e.keyCode) {
case 37:
...
1
vote
2
answers
4k
views
Cookie restriction notice in header instead of footer
I'm looking for a solution for our web shop.
We're using the Magento RWD default theme on our site/webshop (www.jessicaglassart.nl). As in the users guide of Magento version 1.9, the cookie ...
0
votes
1
answer
416
views
Restrict private proxy server (Squid) to only self-written client
I use squid as proxy server and I written a program in C# for clients that use that proxy server for internet communication.
What I want is:
Only my own client program be able to use proxy server (...
30
votes
6
answers
84k
views
How to limit user commands in Linux [closed]
I have a user in a group: "demo".
I want to set the policy that this user can run only 10 commands, like vim, nano, cd, etc.
Or, set the policy to have access on all commands except ssh and ...
0
votes
0
answers
12
views
restrict usage for a service for users
I will design an application for my homework, and I want to add an extra feature regarding limited function usage for users. I can describe my question like below;
I have a database that includes all ...
0
votes
1
answer
18
views
XSD - allow only approved tags
I'm tring to find out if it's possible to restrict XSD validation to allow only tags that are specified in schema?
Let's say I have valid XML :
<root>
<a/>
<b/>
<c>
<c1/&...
0
votes
0
answers
160
views
k3s node restriction for namespace
I would like to ask you where should I look for some information on how to force deployments from some namespace to run on specific nodes in the k3s cluster.
I found this: How to assign a namespace to ...
0
votes
0
answers
29
views
Add a property restriction, using an anonymous class, using Apache Jena
I am trying to add the following fragment to a .owl file that I create in Prótegé:
<owl: Class rdf: about = "http://www.semanticweb.org/example/ontologies/2021/8/test#subs_de_sp3">
...
0
votes
0
answers
23
views
Any way to restrict Android phone to play YouTube/videos only on Chromecast device
I want to restrict my phone to play videos(YouTube, etc) only on chrome cast device.
Need to configure it for my child. So that it can only play videos on Chromecast device, not on phone.
Any solution?...
1
vote
3
answers
103
views
Restricting usage of keywords in Common Lisp (SBCL)
Using SBCL's implementation of Common Lisp, is it somehow possible to present a REPL where usage of specific keywords is prohibited (effectively providing access to only a subset of Common Lisp's ...
3
votes
2
answers
2k
views
Emails not sending when requesting signatures for DocuSign API
I have written the following two methods for sending requests for signatures.
From template: https://github.com/wadewegner/docusign-sample/blob/master/src/DocuSign/DocuSignClient.cs#L215
From binary:...
4
votes
1
answer
369
views
In Rust, how can I restrict a generic T to allow modulus?
As an exercism exercise, I'm currently trying to filter an iterator according to whether the value is even in order to produce a new iterator.
My function currently looks like:
pub fn evens<T>(...
0
votes
1
answer
34
views
What's the best way to implement status change restrictions
I have a backend application in node and a mysql database.
Suppose I have these two tables:
Entity
id
name
fk_status
1
Hello
1
2
World
2
3
Bread
3
Status
id
description
1
A
2
B
3
C
I want to ...
1
vote
1
answer
99
views
How to restrict view in Django from other users?
I am trying to make a page that only can be seen by the user for who the results belongs to. So I like to make that only the user with user_name_id=1 (and the superuser) could see the page that is ...
0
votes
1
answer
49
views
Role/group based state restriction from one state to other state in Azure DevOps Services
In Azure DevOps on-premises (XML process template), we can specify only particular group of users allowed to do perform state transition from particular state to another.
Ex=> Transition from &...
0
votes
0
answers
45
views
Adding data to Django
I'm working on an existing, fairly large, Django application. It has the django.contrib.auth app in settings.py so it already has User and Group models.
I'm trying to use the Group to restrict a list ...
0
votes
1
answer
71
views
Restrict the scope of functions in JavaScript ( Slider Use Case )?
In the following script, the code works when there is a slider, but when the number of sliders on a page is more than one, the next sliders do not work.
How can this script be changed when we have ...
0
votes
1
answer
48
views
I am trying to migrate from hibernate to JPA and came across the Restrictions.ilike for hibernate Critereons. How do I convert this to JPA?
Is there anyway to convert the code below to JPA without using hibernate? I have been doing some looking around and came up with nothing. Thanks in advance!
deCrit.add(Restrictions.ilike(fieldName,
...
2
votes
2
answers
2k
views
Laravel - How can I restrict access to admin login page based on IP address in LARAVEL?
How can I restrict access to admin login page based on IP address in LARAVEL?
I want to set a permission to the admin login page to a single IP Address.
1
vote
1
answer
393
views
Not iterable Error with constraints in minimize from scipy.optimize
I just started studying optimization with Python and I am facing an issue.
I have a problem where I want to minimize my objective function (obj_fun) using minimize from scipy.optimize.
I will share an ...
0
votes
1
answer
172
views
CMS restriction in ASM spartacus
Am working on spartacus, I have a CMSLinkComponent which is having restrictions with user group, lets take admingroup, when i try to impersonate the user who is having admingroup, am unable to see the ...
1
vote
2
answers
248
views
Using scanf only for integers in c
I need to get user input for a number between 0 and 100. The problem is when i input letter in scanf the program crashes or recognizes it as a 0.I want to avoid any user mistake that would potentially ...
0
votes
1
answer
190
views
Zero-restrictions on ARIMAX coefficients using statsmodels.tsa.arima
I am trying to estimate an ARIMAX model with p=96 and q=96 as only non-zero coefficients (meaning all lag orders <96 have coefficient zero). The doc of
statsmodels.tsa.arima.model.ARIMA¶ states ...
0
votes
1
answer
162
views
How can you security-harden a Python program?
What is best way to restrict/sandbox a Python program?
How can I restrict a Python program to only be able to access one website and print to stdout?
I am using pyseccomp to restrict the list of ...