Questions tagged [restrict]

Do not use! This tag has multiple meanings depending context. If you are looking for the restrict keyword in C-like languages use [restrict-qualifier] instead.

353 questions
0
votes
1 answer

openERP rules and restrictions

The problem I'm about to describe I already solve it but in localhost:8069->Settings->Security->Rules. But, what I really want is to give this rule in code..maybe in XML code? The following rule "([('employees_id.user_id','=',user.id)])", works like…
user2742861
  • 340
  • 1
  • 8
  • 17
0
votes
1 answer

openERP restrict users

I'm facing a complex problem, at least for me. I have a form called "Task", which contains all the normal info, and I would like to add users to that Task. If I want to add multiple users to that task, I should use the widget one2many, am I right?…
user2742861
  • 340
  • 1
  • 8
  • 17
0
votes
1 answer

ios restrict to input more than one "." or "," (if it is russian localization)

problem is that on russian localization numeric pad has "," instead of "." and when view is loaded i have "0.0" in the text field, when I thought that user would be able to input only "." I used such code to prevent inputting more than one "." -…
0
votes
2 answers

restricting numbers to a percentage

I was thinking about forcing people to be only capable of writing the numbers between 0-100 (because of the maximum number attained via a percentage is 100%). Is there a way to force people to input a number between 0-100%? I am already restricting…
M.Sidim
  • 303
  • 3
  • 4
  • 15
0
votes
1 answer

JavaScript: Restricting fields - cannot remove special symbols

I am trying to restrict an input text to numbers only by checking it in a setInterval and removing the chars that are not numbers. Now so far this works relatively alright, however I am not able to remove "special symbols". For example if I input…
Fygo
  • 4,555
  • 6
  • 33
  • 47
0
votes
1 answer

How to restrict TFS team favorites modification?

Background: Local standalone instance of TFS 2012 Update 2 deployed from scratch. The Server is Win 2008 R2 SP1 + SQL 2008 R2 + updates (SP2+ I believe) The Server is a member of AD. There is 1 Team and 2 custom groups setup in TFS (developers and…
Andriy
  • 11
  • 2
0
votes
1 answer

Restrict Access to the JSON URL within Drupal from the App

I am working in Drupal which generates JSON that can be assessed through a URL. The URL in turn is parsed by the app (made in Titanium) to show data. Now the problem is that this URL can be publicly assessed by anyone too and one can see all the…
Steve
  • 2,546
  • 8
  • 49
  • 94
0
votes
4 answers

Why compiler don't generate a warning or error if some restrict pointers point to the same object?

If we have a function: void func(int *restrict a, int *restrict b, int *restrict c) { *c = *a + *b; } In principle, this code may lead to some error: int aa = 1; func(&aa, &aa, &aa); because in func, *a *b *c will be the same object. But why…
Yishu Fang
  • 9,448
  • 21
  • 65
  • 102
0
votes
1 answer

JPA: On Delete Restrict

How can I achieve "ON DELETE RESTRICT" behavior in a @OneToMany relationship? AFAIK if I do not set CascadeType.REMOVE the children will not be deleted but the parent will still be removed. I know this cascade type is meant for entity objects but in…
beginner_
  • 7,230
  • 18
  • 70
  • 127
0
votes
2 answers

WAMP - How to restrict access to phpMyAdmin for a dedicate ip address?

Maybe duplicate of this or this but I didnt get my answer there. I want to restrict access to dedicate ip addresses (like 192.168.120.138) I newly installed wamp server 2.0c (apache 2.2.8 & php 5.2.6 & phpmyadmin 2.11.6) It keeps on saying …
user1778985
0
votes
2 answers

Compiler error involving restrict keyword

Possible Duplicate: What does the restrict keyword mean in C++? I'm trying to install QMCPACK on OS X 10.8.2 and I'm getting a lot of errors like this: bspline_base.h:95:17: error: expected ';' at end of declaration list void *restrict coefs; …
Nick
  • 5,228
  • 9
  • 40
  • 69
0
votes
2 answers

Restrict access to login page after users have logged in php

i have a login page on my mobile website as index.html so the user has to either login , which will take them to the main site, or register, which will let them register, and then login and gain access to the main site. bit like a mobile app login…
FoamyMedia
  • 486
  • 3
  • 14
  • 32
0
votes
2 answers

Restrict users from editing post based on the age of the post

In Wordpress, how can I restrict users (based on Capabilities) from editing their published posts after a custom amount of time. For instance, a user that can publish_posts (authors) can not edit a their post if it is older than 3 days, and a user…
Gary Woods
  • 1,011
  • 1
  • 15
  • 33
0
votes
2 answers

Restrict users from using specific tags with a technique that does not erase the tag

I run a multiple author Wordpress site with thousands of posts. To highlight good posts, I filter them by specific tags that only admins can set. For instance featured, front page etc. To avoid my authors selecting these tags themselves, I use the…
Gary Woods
  • 1,011
  • 1
  • 15
  • 33
0
votes
1 answer

Node.js - Dynamically forbid some public paths on production mode

I'm using node.js with express.js. Here's my public dir structure: public/ js/ css/ images/ built/ main-built.js main-built.css index.html dev.html Where index.html links to scripts in js/ and css/, while…
Trantor Liu
  • 8,770
  • 8
  • 44
  • 64