A set of limiting conditions or measures to delimit the behavior of software.
Questions tagged [restrictions]
232 questions
0
votes
1 answer
Mock Restrictions criteria with mockito
I gotta say that I'm new to Mockito and TDD.. I'm struggling to find a reason to use it.. especially when I find issues like the following one..
I'd like to test a "RegisterUser" method in my UserService class .. I'm using spring mvc 3.0.6,…

Gfalco
- 77
- 3
- 13
0
votes
1 answer
How to make sure users can only vote once per post
I'm building a website which has a feature which ressembles SE's voting system. I'm trying to restrict users from voting more than once per post.
Currently, I was thinking of having a field in my user mysql database that would keep a list of ids…
user623990
0
votes
2 answers
Wordpress 3.2: Hide Spam and Unapproved Comments form Contributors
We're using Wordpress for a School Project. Every Student has his own Contributor account. The teacher holds the admin role and approves comments on the blog. Due to Spam and not so nice comments we need to watch for bullying comments to articles.…
0
votes
2 answers
Setting age restriction returns false
Using the sample PHP code on this page works great for setting the restriction to {"location":"US"} however it returns false when trying to set it to {"age":18} or {"age":"18"}. Is there a special way which this needs to be formatted in order to set…

Tyler V.
- 2,471
- 21
- 44
0
votes
1 answer
Protecting Persistent Data either by using Blackberry SIgning Authority Tool Or Some other mechanism
We have developed an application in Blackberry 8830.
And we have stored the data in the Persistent Store. However, we would like to use some protection mechanism to secure the data.
We were using the following code :
try{
codeSigningKey…

Dheeraj Jami
- 190
- 2
- 14
0
votes
2 answers
Does Android HoneyComb support multiuser restricted account?
a customer ordered us a tablet application, but they need a lot of access restriction to lock device functions such as:
Permit datas transfer only inside the application not outside
Restricted user access on the device (something close to admin and…

Andrea
- 26,120
- 10
- 85
- 131
0
votes
0 answers
Conditions widget in protege 5
everyone, I am a new user of protege. I want to define some restrictions for my Ontology but could not locate the conditions widget or an editor that can allow me to specify the existential Restrictions. Pls how do i locate the conditions widget in…

olu
- 31
- 1
- 4
0
votes
1 answer
WCF service: restrictions for WebGet and WebInvoke with AD - security roles for a website with anonymous access
I wrote a WCF service with WebGet and WebInvoke methods. It works so far (after a lots of trial and error :-)
But now I have troubles getting restrictions using AD security roles to work.
I need to restrict the access to the WebInvoke method…

SEn sen
- 5
- 6
0
votes
1 answer
How to restrict app installation on devices which don't have 4K camera?
I'm writing application which should be installed only on devices with supported 4K camera. How I could add that restriction

Dmytro Batyuk
- 957
- 8
- 15
0
votes
1 answer
Bypass IP restriction SSH
I have a Laravel app with CI/CD setup at BuddyWorks which lets you create deployment pipelines.
I want to use SSH action to run some config scripts (artisan...) after uploading the source code.
Unfortunately, it turned out that SSH connectivity to…

ZR87
- 1,463
- 16
- 27
0
votes
0 answers
abstract controller connected to repository using restrictions - asp.net core 2
My database has several tables to store devices info. All of them with very similar functionality and fields, but they all have a few specific needs.
For this solution I created a data project, where I wrote database access and Models.
My interface…

Antonio Rodríguez
- 976
- 2
- 11
- 25
0
votes
1 answer
Test In-Memory collection against NHibernate restrictions
My application allows a user to do some pretty in depth filter editing before they run a report. I have a whole framework to dynamically generate NHibernate restrictions based on these filters, and to run the query.
I have a situation where I have…

captncraig
- 22,118
- 17
- 108
- 151
0
votes
1 answer
Limit page creations by user role functions.php
Is it possible to create a function via functions.php that restricts users from creating pages based on their user role? So for example, users with the user role "limited" can only create 5 pages.
When they reach this amount, the "Create new page"…

user2812779
- 193
- 3
- 19
0
votes
0 answers
"SELECT *" except for columns the user is not allowed to view
We've recently added a few restrictions as to what data an analyst can retrieve - specifically the password column in a users table.
The problem is she has thousands of queries which feature SELECT * from users, or joins, etc etc, in his…

Kevin Sedgley
- 1,049
- 1
- 11
- 22
0
votes
1 answer
Append Criteria query to previous query in Hibernate
I have a String array named andOrButtonFilter which stores and or filters selected by user.
Also two ArrayList named column and value storing column names and their values respectively.
I want the current query to append to the previous query and…

Jagruti
- 312
- 4
- 18