Questions tagged [policies]

200 questions
26
votes
2 answers

Google Play/App Store in-app purchase policies

I heard from someone that on App Store, everything you sell or anything the user buys, Apple must have their 30% on it. That would imply that even if you open a web page within the app and accept a donation, Apple must have its percentage. Otherwise…
Teo Inke
  • 5,928
  • 4
  • 38
  • 37
14
votes
4 answers

Pundit policies with two input parameters

I'm pretty new with Rails and I have a problem with the following policies (using Pundit): I'd like to compare two objects: @record and @foo, as you can see here: class BarPolicy < ApplicationPolicy def show? @record.foo_id == @foo …
Rowandish
  • 2,655
  • 3
  • 31
  • 52
12
votes
3 answers

Java Security Manager completely disable reflection

I've been reading quite a lot of questions on Stackoverflow about this question but couldn't quit find a solution or answer for my problem. If there is already one I would be grateful if somebody would give a hint ... My problem/question is if it…
Bruno
  • 894
  • 11
  • 32
11
votes
3 answers

Multiple Policies for a Model in Laravel

Does Laravel allow us to add multiple Policies for a Model? I.e. consider App\Providers\ASuthServiceProvider's $policies property: protected $policies = [ 'App\Team' => 'App\Policies\TeamPolicy', 'App\Team' => 'App\Policies\RoundPolicy', …
AshMenhennett
  • 1,095
  • 4
  • 14
  • 25
11
votes
3 answers

Passing Parameters to sails.js policies

Sails.js (0.9v) controllers have policies defined as: RabbitController: { '*': false, nurture : 'isRabbitMother', feed : ['isNiceToAnimals', 'hasRabbitFood'] } is there a way to pass params to these acls eg: RabbitController:…
Arif
  • 315
  • 2
  • 10
7
votes
1 answer

Using a policy's this->authorize() check in a laravel controller inside a store() method

So I was reading about using laravel policies for granting authorities on the resources of my application but there seems to be a problem there though I followed the tutorial. I have a user model which can't be created via HTTP requests except by…
Ramy Farid
  • 144
  • 1
  • 2
  • 15
6
votes
4 answers

AWS IAM Policy to Enforce Tagging

Is there a way to enforce tagging while creating EC2-Instances? I,e user cannot launch an instance without certain tags. And can I use that tags to give control to particular instance depending on the tag?
Ramu
  • 61
  • 1
  • 2
6
votes
3 answers

Source Control Training

I am sure everyone knows that Source Control is a core component of responsible software development. Like software development practices most organisations have differing policies and procedures in working with their chosen Source Control…
Kane
  • 16,471
  • 11
  • 61
  • 86
5
votes
1 answer

Microsoft Azure API Management - Cache policy doesn't work

I have tried to set a caching policy in Azure API Management as follows:
5
votes
1 answer

AspNet Identity RequireClaim() - How to use OR?

I have this code for visual studio Identity namespace BlazorBoilerplate.Shared.AuthorizationDefinitions { public static class Policies { public const string IsAdmin = "IsAdmin"; public const string IsUser = "IsUser"; …
Tom Crosman
  • 1,137
  • 1
  • 12
  • 37
5
votes
0 answers

How to test policy with a variable inside the IAM Policy Simulator

The goal is to create a policy that allows S3 upload, but only to a subfolder with a name of uploader's Cognito sub identifier: upload-bucket/${cognito-identity.amazonaws.com:sub}/*. As described here. I'm trying to create the proper policy with…
Daniel Birowsky Popeski
  • 8,752
  • 12
  • 60
  • 125
5
votes
0 answers

Google Play Account Termination

Today I recieved a notificiation e mail from Google: "This is a notification that your Google Play Publisher account has been terminated. REASON FOR TERMINATION: Prior violations of the Developer Program Policies and Developer Distribution Agreement…
olcayakgn
  • 73
  • 1
  • 4
5
votes
2 answers

As correctly use policies in laravel 5.2? I can not

I have a problem, I can not use policies in laravel 5.2. I have 2 tables, students and tasks. I try to apply a policy to prevent editing of a task by changing the url, but I always get the message This action is unauthorized although the task is the…
Cristian Bustos
  • 357
  • 7
  • 20
4
votes
2 answers

Laravel, having a custom controller method with custom policy method?

I have a resource controller and want to add an extra custom policy method for destroyMany In which I would check if the user is admin before deleting many. The default methods work fine Controller Method Policy…
4
votes
1 answer

Laravel policy on route: Too few arguments to function 1 passed 2 expected

I've created a policy to guard my model. What I'm trying to do is block anyone from editing a thought record that isn't there's. web.php Auth::routes(); Route::prefix('/')->middleware(['auth','can:viewAny,App\ThoughtRecord'])->group(function() { …
Kyle Corbin Hurst
  • 917
  • 2
  • 10
  • 26
1
2 3
13 14