public function actionDataPermissionGrantGroup()
    {
        $groupId = (int) Yii::$app->request->getBodyParam('groupId');

        if (empty($groupId)) {
            throw new InvalidArgumentException("groupId can not be empty.");
        }

        return Yii::$app->db->createCommand()->delete('cms_nav_permission', ['group_id' => $groupId])->execute();
    }
public function actionDataPermissionGrantGroup()
    {
        $groupId = (int) Yii::$app->request->getBodyParam('groupId');

        if (empty($groupId)) {
            throw new InvalidArgumentException("groupId can not be empty.");
        }

        return Yii::$app->db->createCommand()->delete('cms_nav_permission', ['group_id' => $groupId])->execute();
    }
public function actionDataPermissionGrantGroup ( ) { $ groupId = ( int ) Yii :: $ app -> request -> getBodyParam ( 'groupId' ) ; if ( empty ( $ groupId ) ) { throw new InvalidArgumentException ( "groupId can not be empty." ) ; } return Yii :: $ app -> db -> createCommand ( ) -> delete ( 'cms_nav_permission' , [ 'group_id' => $ groupId ] ) -> execute ( ) ; }
Grant access to a given group.
Grant access to a given group .