Skip to content

Yii2 restricts update if model's 'author_id' field differs from current user's ID

Notifications You must be signed in to change notification settings

Gropaga/yii2-restrict-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Model update restriction

Restriction is based on 'author_id' field

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist gropaga/yii2-restrict-update "*"

or add

"gropaga/yii2-restrict-update": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \updaterestrict\AutoloadExample::widget(); ?>```

About

Yii2 restricts update if model's 'author_id' field differs from current user's ID

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages